Symfony(2) Template file
Can any one tell me where templates/layout.php
file exists in symfony ? In the t开发者_高级运维utorial its pointed to <!-- apps/frontend/templates/layout.php -->
but i dont have apps folder in the project root but there is a folder called app but no fronted folder inside it..
In Symfony2, the concept of the Symfony1 apps
folder doesn't exist anymore. Your project is composed of a number of Bundles, which contain your entities, controllers and views (amongst other items such as assets). In your bundle(s) is where you will find template files.
It sounds like you're trying to use the Symfony 1 tutorial with the Symfony2 sandbox/PR downloads. You might benefit from starting with the Symfony2 book instead.
It's located in:
<your_project>/apps/<your_application_name>/templates/layout.php
In the tutorial example the application name is 'frontend'.
Strange that you don't have an apps directory.
精彩评论