| php Programming Glossary: demobundleSymfony2 - How to set, and get, options when using a Form Class? http://stackoverflow.com/questions/10382075/symfony2-how-to-set-and-get-options-when-using-a-form-class  first place EDIT More code Form Class php namespace DEMO DemoBundle Form Product use Doctrine ORM EntityRepository use Symfony Component.. 'is_active'  add 'category' 'entity' array  'class' 'DEMO DemoBundle Entity Product ProductCategory'  'query_builder' function EntityRepository.. getDefaultOptions  return array 'data_class' 'DEMO DemoBundle Entity Product Product'  public function getName  return 'demo_demobundle_product_type'.. 
 Decoding JSON in Twig http://stackoverflow.com/questions/14500698/decoding-json-in-twig  a class that will contain the extension php namespace Acme DemoBundle Twig Extension use Symfony Component DependencyInjection ContainerInterface.. in your Services.xml file service id some_id class Acme DemoBundle Twig Extension VarsExtension tag name twig.extension argument.. 
 Symfony2 Routing - route subdomains http://stackoverflow.com/questions/5366234/symfony2-routing-route-subdomains  services kernel.listener.subdomain_listener class Acme DemoBundle Listener SubdomainListener tags  name kernel.event_listener.. the class SubdomainListener.php as php namespace Acme DemoBundle Listener use Symfony Component EventDispatcher EventDispatcher.. 
 symfony2 - how to switch from “dev” to “prod”? http://stackoverflow.com/questions/6789950/symfony2-how-to-switch-from-dev-to-prod  version to app config routing.yml. _welcome resource @AcmeDemoBundle Resources config routing.yml prefix I created src Acme DemoBundle.. Resources config routing.yml prefix I created src Acme DemoBundle Resources config routing.yml with content bla pattern defaults.. with content bla pattern defaults _controller AcmeDemoBundle Demo index In DemoController indexAction I placed a die __FILE__.. 
 |