Answer the question
In order to leave comments, you need to log in
How can child layout be organized in symfony 1.4?
Hi all! I ran into such a problem that in the module I don’t want to use include_partials for each template, but to take out some repeating part in the layout. The project already has /project/apps/frontend/templates/layout.php, and I would also like not to copy it, but create a layout /project/apps/frontend/MODULE/templates/new_layout.php, child as a be. I created the layout itself in the module, it works, but I don’t know how to make it a child.
A striking example of my result can be an example with yii
That is, there is a common main and child column*.php.
Answer the question
In order to leave comments, you need to log in
There are no inherited layouts in symfony 1.4. You can make separate layouts, and specify them as default in the view.yml of the module. If you are concerned about code repetition, then these parts can be taken out as partials in some share module. The rest of your content should be broken down into components/partials anyway.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question