Forum Moderators: coopster
My problem is I need to start using Nested Templates. For Adobe Dreamweaver users this term might be familiar to you. I love nested templates because they let me create One Universal Template (the Master Template), containing the header and footer of the entire site, and in between the content wrapper. That way any template I create that inherits the master template will already have the headers and footers wrapped around it.
I am tired of having to call {include_php file='header.php'} on the top of every template and {include_php file='footer.php'} after my template content. This possible nested template feature could certainly speed things up a bit and make my code cleaner and easier to manipulate.
So I was wondering if there is such "Nested Template" in Smarty and if not what ideas can you guys give me so I can implement it myself. Any good strategy, plugins or hidden Smarty features that I might not be aware of that you guys would like to share in this thread would be kindly appreciated.
Thanks for reading.
Best regards,
That, of course, is wonderful! I did not know there was such feature in PHP and it can certainly be helpful right now. Thank you!
One tedious little technical note though ... they are not functions, they are configuration directives [php.net]. They are of type
PHP_INI_PERDIRwhich means the entry can be set in php.ini, .htaccess or httpd.conf. If you are using a shared hosting provider, you'll have to see if they will allow you to use those directives.