Problems with php file inclusion
| From: | Diego Toma | Date: | Wed, 10 Apr 2002 11:31:39 +0000 |
| Subject: | Problems with php file inclusion | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-3603@lists.php.net to get a copy of this message | ||
Hello,
I've just upgraded from Smarty 1.5.2 to 2.0.1. There seems to be a problem when I try to
include a
php file into a template.
I get a message like:
Fatal error: Smarty: [in template1.tpl line 9]: syntax error: 'file: header.php' is not
readable in
/free/apache/mainApp/include/Smarty_Compiler.class.php on line 1316
Security is off and $trusted_dir array is empty (as it was in previous version). Permissions on the
file to include seem to be OK.
It seems to work if the path is hard-coded, like <{include_php
file="/free/apache/mainApp/include/header.php"}>, but obviously I'd prefer to
avoid such
workaraunds.
Can anybody help me?
Thanks
****************************************
Diego Toma