Setting Up Symfony Projects: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
| Line 3: | Line 3: | ||
Notes on tasks related to setting up web projects using the [http://symfony.com/doc/current/index.html Symfony] framework. | Notes on tasks related to setting up web projects using the [http://symfony.com/doc/current/index.html Symfony] framework. | ||
== Twig template documentation == | == Resource ocations == | ||
* '''Controllers:''' `src/AppBundle/Controller/` | |||
* '''Models''' (Entities): `src/AppBundle/Entity/` | |||
* '''Templates:''' `app/Resources/views/` | |||
* '''Sass:''' ''TK'' | |||
* '''Stylesheets:''' ''TK'' | |||
* '''Images:''' ''TK'' | |||
* '''JavaScript:''' ''TK'' | |||
== Templates == | |||
=== Twig template documentation === | |||
* Basics of syntax: [http://twig.sensiolabs.org/doc/templates.html Twig for Template Designers] | * Basics of syntax: [http://twig.sensiolabs.org/doc/templates.html Twig for Template Designers] | ||
Revision as of 00:49, 25 January 2015
Overview
Notes on tasks related to setting up web projects using the Symfony framework.
Resource ocations
- Controllers:
src/AppBundle/Controller/ - Models (Entities):
src/AppBundle/Entity/ - Templates:
app/Resources/views/ - Sass: TK
- Stylesheets: TK
- Images: TK
- JavaScript: TK
Templates
Twig template documentation
- Basics of syntax: Twig for Template Designers
Compass/Sass
Installation & Configuration
Install Compass into [project_root]app/Resources/assets/:
m:\path\to\project\app\Resources\assets\> compass init
The stylesheets will be written to [project_root]web/css/.
See also Install & Configure Sass & Compass
Assetic
Maybe look into this more. Sass/Assetic combination is not well documented. Not sure how to watch for changes in a whole directory outside of a bundle.
Assetic is an asset management tool created specifically for Symfony2. It looks like it can be used in place of grunt for the purposes of compiling Sass. The main benefit is that it saves the step of opening a shell and start up grunt to compile.
- How to use Assetic for asset management (Symfony)
- Sass, Compass, and Assetic in 10 minutes (Alexandre Salomé)