2013年10月22日星期二

SitePoint PHP Blog: Building a Web App With Symfony 2: Development


On the SitePoint PHP blog they've posted the next in their "Building an Application with Symfony2" series. In this new post they move past the initial setup and into some actual development.



In Part 1, I have shown you how to set up Symfony 2 and link up the database. We also covered some fundamental concepts of the framework. In this part, we will link things up by creating routes, controllers, entities/repositories, and views to get the site up and running.


He shows you how to set up some sample routes (the example application shows information about books) and starts with the "home" route to make the first controller. He uses Doctrine to manage the database entities/repositories and includes the code to create them. Finally he makes the views and templates for this first route and shows the end result.


Link: http://www.sitepoint.com/building-web-app-symfony-2-development/

没有评论:

发表评论