User Tools

Site Tools


symfony:symfony_tutorial_notes:create_your_first_page_in_symfony

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:create_your_first_page_in_symfony [2015/09/16 04:04] mithatsymfony:symfony_tutorial_notes:create_your_first_page_in_symfony [2015/09/17 23:38] (current) mithat
Line 1: Line 1:
 ====== Create Your First Page in Symfony ====== ====== Create Your First Page in Symfony ======
 ===== TL;DR ===== ===== TL;DR =====
-  * Controllers live in **''src/AppBundle/Controller''**. Use annotation to specify routes.+  * Controllers live in **''src/AppBundle/Controller''**.
   * Templates live in **''app/Resources/views''**.   * Templates live in **''app/Resources/views''**.
 +  * Use annotation in controllers to specify routes.
   * **''app/''**: Contains things like configuration and templates--basically, anything that is not PHP code.   * **''app/''**: Contains things like configuration and templates--basically, anything that is not PHP code.
   * **''src/''**: Your PHP code lives here.    * **''src/''**: Your PHP code lives here. 
Line 160: Line 161:
 </code> </code>
  
-Templates live in **''../app/Resources/views''**:+Templates live in **''app/Resources/views''**:
  
 <file twig app/Resources/views/lucky/number.html.twig> <file twig app/Resources/views/lucky/number.html.twig>
symfony/symfony_tutorial_notes/create_your_first_page_in_symfony.1442376242.txt.gz · Last modified: 2015/09/16 04:04 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki