I have the same code in the start of all my controller / language / tpl files and i was wondering is there a way to save size to use an include so its all in 3 files to be included controller / lang / tpl in the files above , Thus saving on file size
I hope someone knows what i mean ?
any help would be appreciated.
Yes, you can just use a PHP statement in the template file to include another .tpl file. For example:
Then you'd use that in place of the product code. Keep in mind that different controllers use different variables, however, and if you use vQmods then they won't affect the included file (without some adjustment).
Code: Select all
<?php include('catalog/view/theme/default/template/product/layout.tpl'); ?>
Who is online
Users browsing this forum: No registered users and 43 guests