Running the symfony init commands.
运行symfonyinit命令。
Building Blahg in symfony is somewhat different.
在symfony中构建Blahg有些不同。
Some of the best include CakePHP, Symfony and CodeIgniter.
其中比较好的框架包括cakephp ,Symfony和CodeIgniter 。
The difference in this case is in how you get the symfony instance.
本例的不同之处在于如何获得symfony实例。
All of your symfony command-line work must be done from this directory.
所有的symfony命令行工作必须从该目录完成。
In essence, these lines are telling symfony where to find your web directory.
实质上,这些行将告诉symfony在什么位置查找web目录。
Now that you have symfony up and running, it's time to cobble together Blahg.
现在已经使symfony启动并运行,是该整合Blahg的时候了。
For the Zend Framework and symfony, use the following SQL to create a comments table.
对于Zend框架和symfony,请使用以下SQL创建comments表。
This will be the protected directory to hold all the symfony code for the column.
这将是受保护的目录,用于保存列的所有symfony代码。
The first half of this file will look much like the symfony front controller you created.
此文件的前半部分与您创建的symfony前端控制器看上去很相似。
Now that we've added comments with Zend, we can take a look at how to do it in symfony.
现在已经用Zend添加了评论,接下来将查看如何在 symfony 中添加评论。
These are just templates CakePHP will use, much like the templates you created in symfony.
这些文件只是CakePHP将使用的模板,它们很像您在symfony 中创建的模板。
For Zend and symfony, you're leaving the maintenance of the modified column up to the database.
对于Zend和symfony,将把对修改后的列的维护工作留给数据库。
For the database and schema definition files, symfony USES Yet Another Markup Language (YAML).
对于数据库和模式定义文件,symfony将使用YetAnotherMarkupLanguage (YAML)。
In the front controller, you told symfony to look for the controller and dispatch the request.
在前端控制器中,您将要求symfony查找控制器并发送请求。
The application structure built by the symfony init scripts don't know what your directory structure is.
由symfony的init脚本构建的应用程序结构不知道您的目录结构是怎样的。
You don't need to write a Front Controller like you did in Zend, as symfony has already provided this for you.
您不需要像在Zend中一样编写Front控制器,因为symfony已经为您提供了该控制器。
Create three databases, called Zend, symfony, and Cake, and grant full rights to each database to an appropriate user.
创建三个名为Zend、symfony和Cake的数据库,并将对每个数据库的全部权限授权给相应的用户。
This article walks through extending the sample application, Blahg, in each of the three frameworks (Zend, symfony, and CakePHP).
本文将指导您分别在三个框架(Zend、symfony和CakePHP)中扩展样例应用程序Blahg。
You'll build the application in each framework, getting a sense for how Zend, symfony, and CakePHP handle automated tasks differently.
您将在每个框架中构建应用程序,了解Zend、symfony和CakePHP各自如何处理自动执行的任务。
symfony provides a default layout template (in apps/blahg/templates/layout.php) that provides the basic head andfoot of the HTML page.
symfony提供了一个默认的布局模板(在apps/blahg/templates/layout.php 中),该模板提供了HTML 页面的基本页头和页尾。
NOTE: Like symfony, CakePHP provides functionality to auto-generate code to provide the CRUD functionality based on your database.
注:像symfony 一样,CakePHP提供了自动生成代码功能来基于数据库提供CRUD 功能。
And last but not least, you need to modify /column/htdocs/symfony/index.php so it knows what the real root directory is for your project.
最后一个要点是,需要修改 /column/htdocs/symfony/index.php使其知道项目的实际根目录位置。
Because symfony USES Propel to provide Object Relational Mapping, you need to generate the model with the symfony command-line utility.
由于symfony将使用Propel来提供对象关系映射(Object Relational Mapping),因此需要用symfony命令行实用程序来生成模型。
Run the following command from the /column/protected/sf_column directory: php /column/src/symfony/data/bin/symfony init-module blahg comment.
从 /column/protected/sf_column目录运行以下命令:php /column/src/symfony/data/bin/symfonyinit-moduleblahgcomment。
Run the following command from the /column/protected/sf_column directory: php /column/src/symfony/data/bin/symfony init-module blahg comment.
从 /column/protected/sf_column目录运行以下命令:php /column/src/symfony/data/bin/symfonyinit-moduleblahgcomment。
应用推荐