User Tools

Site Tools


symfony:symfony_tutorial_notes:the_bundle_system

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
symfony:symfony_tutorial_notes:the_bundle_system [2015/09/17 01:31] – [Creating a Bundle] mithatsymfony:symfony_tutorial_notes:the_bundle_system [2015/09/18 04:04] (current) – [Bundle Directory Structure] mithat
Line 69: Line 69:
 The ''generate:bundle'' command adds the new bundle to ''AppKernel.registerBundles()''. The ''generate:bundle'' command adds the new bundle to ''AppKernel.registerBundles()''.
  
 +See [[http://symfony.com/doc/current/cookbook/bundles/best_practices.html#bundles-naming-conventions|Bundle Naming Conventions]].
  
 ===== Bundle Directory Structure ===== ===== Bundle Directory Structure =====
Line 83: Line 83:
          
 <WRAP center round tip 100%> <WRAP center round tip 100%>
-Note that the current best practice for the ''AppBundle'' seems to be that+Note that the current [[http://symfony.com/doc/current/best_practices/index.html|best practices]] for the ''AppBundle'' are
-  * **controllers** go in ''src/AppBundle/Controller/'' as expected. +  * **config** goes in ''app/config/'' (rather than ''src/AppBundle/Resources/config/'') 
-  * **config** goes in ''app/config/'' rather than ''src/AppBundle/Resources/config/'' +  * **controllers** go in ''src/AppBundle/Controller/'' (as expected). 
-  * **views** go in ''app/Resources/views/'' rather than ''src/AppBundle/Resources/views/''+  * **views** go in ''app/Resources/views/'' (rather than ''src/AppBundle/Resources/views/'')
   * **assets** go in ''web/''   * **assets** go in ''web/''
   * **tests** go in TBD   * **tests** go in TBD
 </WRAP> </WRAP>
  
symfony/symfony_tutorial_notes/the_bundle_system.1442453507.txt.gz · Last modified: 2015/09/17 01:31 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki