![]() |
Including site header in head.tpl
I have a PHP file that sits outside the cart's folder and is used for the header of the rest of our site. Is there a way to include that throughout our cart i.e. standard PHP include? I can't determine the method to include these files.
Thanks, Matt |
Code:
{include_php file="/path/to/file.php"} |
Code:
{include_php file="/path/to/file.php"} The result: Warning: Smarty error: http://mydomain.com/shared/menu_header.php is not readable in /home/arc/public_html/shop/Smarty-2.6.9/Smarty.class.php on line 1088 :oops: |
You have to use the server path, not the URL.
|
Quote:
|
If you have shell access, type 'pwd' at the $ prompt to see the current directory you are in.
|
All times are GMT -8. The time now is 06:01 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.