16. What exactly is a bundle? A bundle is like a plugin … except Symfony2 itself is made up of bundles
17. “Iwas using the same idea by organizing my code in [zend framework] modules, but this is really painful” -- tawfekov via StackOverflow http://stackoverflow.com/questions/5053369/do-you-think-zend-framework-misses-the-symfonys-bundle-principle
31. # cd ~/Projects/LoneStarPHP # tar xvzf/path/to/Symfony_Standard_Vendors_2.0.0BETA4.tgz Extract to your web directory
32. Check requirements Not accessing from localhost? Remove the security check from: web/config.phpweb/app_dev.php http://yourhost/LoneStarPHP/web/config.php
37. Configure the database connection You can write your own configuration files instead http://yourhost/LoneStarPHP/web/app_dev.php/_configurator/step/0
38. Yay, Welcome to Symfony! http://yourhost/LoneStarPHP/web/app_dev.php
39. What makes a page? /hello/world A Route /hello/{name} A Controller A PHP function A Response “<h1>Hello World!</h1>”
40. Step 1: Create a route /hello/world File: app/config/routing.yml AcmeDemoBundle:LoneStar:hello maps to AcmeemoBundleontrolleroneStar::helloAction() * Routing can also be defined with XML, PHP and as annotations
41. Step 2: Create a controller /hello/world File: src/Acme/DemoBundle/Controller/LoneStarController.php * At its simplest, a controller is just a function
A good time to try symfony2 as it nears its final release. It is currently at Beta4.There are already a lot of companies using symfony2 in one form or another, my last company used it very extensively to power both our frontend website and our backend distributed video & photo processing cluster.
Symfony2 is a group of standalone components bundled together to make a full service frameworkIt removes the box..
Symfony2 is a group of standalone components bundled together to make a full service frameworkIt removes the box..
Zend_Application reduced the barrier of entry
Zend_Application reduced the barrier of entry
Zend_Application reduced the barrier of entry
Symfony2 speak, a bundle is a structured set of files (PHP files, stylesheets, JavaScripts, images, ...) that implements a single feature (a blog, a forum, ...) and which can be easily shared with other developers
Bundles are reusable modules done right
Less MagicAutoloadingExplicit configurationDoctrine2 & Datamapping difference between active record
Less MagicAutoloadingExplicit configurationDoctrine2 & Datamapping difference between active record
Less MagicAutoloadingExplicit configurationDoctrine2 & Datamapping difference between active record
Less MagicAutoloadingExplicit configurationDoctrine2 & Datamapping difference between active record- Tough to unit test doctrine 1.2, a lot of magic
Not native to PHPAllow for less work and keep routing and templating togetherThrough SymfonyExtraBundle you can specify http cache times & require specific user rights to an action