Using symfony layouts outside the view
source link: https://www.codesd.com/item/using-symfony-layouts-outside-the-view.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Using symfony layouts outside the view
I want to create a custom ./config/unavailable.php
page using the layouts and styling used by the rest of my application. I could just copy the generated HTML that one of these pages renders, but then if I ever change the layout or style I would have to re-copy.
How can I render the unavailable.php
page the same way I render the views?
I am using symfony 1.4.
unavailable.php
is called when symfony is busy clearing its cache. You might want not to disturb it too much at this moment, that's why plain php is used. Copying html could be done by a cron task though, so if I were you I would try to combine cron, wget and sed to achieve this.
Related Articles
Jquery - use a variable outside the function
BackboneJS: How to call the function outside the view from the hash of the events of the view?
ASP MVC 3 uses different layouts in different views
Center UIView on the screen by automatically using the layout when the view is at the top of the view hierarchy
Rails 5 makes a template outside the 'views' directory
Buttons appear outside the view when they are placed in TabBarController but not otherwise?
Using multiple layouts for the list
Detect keys that started outside the view
Why can some functions only use variables declared outside the function?
I can not make XNA let me use texture2D objects outside the MAIN class
How can I have MySQL to use an INDEX for the viewing query?
The layout of the view will not be refreshed when changing orientation in Android
Using local variables outside the scope of the loop
Using different layouts for the login page
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK