2014年5月28日星期三

NetTuts.com: Creating Reusable Forms in Symfony 2


NetTuts.com continues their series covering some of the basics of using the Symfony2 framework with this new screencast looking at creating reusable forms.



In this video, we'll build upon our existing knowledge of Symfony 2 to learn how to create reusable forms. We'll learn how to create a separate form class to house our form logic, build the form in a controller and then render it to the browser, from a template.


In the previous parts of the series they built up knowledge on the basics, routing, controllers and templates. In this screencast they use their DemoBundle to create the Person object, make a form populated with its data (name) and the Twig template to render the form.


Link: http://code.tutsplus.com/tutorials/creating-reusable-forms-in-symfony-2--cms-21244

没有评论:

发表评论