Create a new layout with the contents of your header/footer
combination (similar to your default layout), save it in app/views/
layouts, and in your controller's beforeRender() callback set $this-
>layout = 'name_of_your_new_layout';

Don't change the extensions.  They're different for a reason.
Don't worry about the 'impact on PHP'; there are hundreds of other
bottlenecks that will slow your app down before you should start
caring about this.

-J.

On Apr 21, 7:34 am, Jignesh Thummar <[EMAIL PROTECTED]> wrote:
> In views/<controller_name> directory, i have two files for header and
> footer respectively header.thtml and footer.thtml.
> I want to include these two files in that particular controller's all
> view files.
>
> If I change my file name from header.thtml to header.php, does it make
> any performance impact on PHP?
> I have tried to look on cachegrind.out file generated by Xdebug. And i
> found something strange about this function call.
>
> Any help on this will be appreciated.
>
> Regards,
> Jignesh
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to