80 likes | 277 Vues
Symfony2 - Step-by-step. Portfolio 3.0 Symfony 2.0 MongoDB jQuery UI RESTfull services. Day 1 – Symfony 2 basic. Purpose: a simple blog application Requirements: Install a basic symfony 2.0 Overview a symfony application Create new bundle / src / Likipe / BlogBundle
E N D
Symfony2 - Step-by-step • Portfolio 3.0 • Symfony 2.0 • MongoDB • jQuery UI • RESTfull services
Day 1 – Symfony2 basic • Purpose: a simple blog application • Requirements: • Install a basic symfony2.0 • Overview a symfony application • Create new bundle /src/Likipe/BlogBundle • Create an entity Blog with doctrine ORM • Create simple CRUD actions. • Create simple views for the application.
1 – Installation symfony • Tutorial: http://symfony.com/doc/current/book/installation.html • Achievement: • Application structure • Vendor (with Git) • Notice: • XAMPP is recommend • Download symfony 2.0.15 (.tgz)
2 – Overview • Tutorial: http://symfony.com/doc/current/book/page_creation.html • Achievement: • Route/controller • Run demo link • View with Twig • Basic configuration • Note: • Namespace • Config with yaml • Environment
3 – LikipeBlogBundle • Tutorial: http://symfony.com/doc/current/book/page_creation.html • Achievement: • Command line • Bundle • AppKernel • Note: • Bundle structure • Default config
4 – Doctrine ORM • Tutorial: http://symfony.com/doc/current/book/doctrine.html • Achievement: • Entity • Mapping (Annotation) • Doctrine generate • Repository & Query Builder • Note: • Base repository methods • Default config
5 – C.R.U.D. • Tutorial: http://symfony.com/doc/current/book/doctrine.html • Achievement: • doctrine Persist & Flush • Route -> action controller • Controller’s request & response • Note: • Routes
6 – Views • Tutorial: http://symfony.com/doc/current/book/templating.html • Achievement: • Twig • Layout & inheritance • Link to page • Note: • Twig functions & filters • Debugging