Re: [SMARTY] Problems with php file inclusion

From: Date: Wed, 10 Apr 2002 13:17:33 +0000
Subject: Re: [SMARTY] Problems with php file inclusion
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-3605@lists.php.net to get a copy of this message
On Wed, 10 Apr 2002, Diego Toma wrote: > 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? This wasn't working in 2.0.1, but it will work in the next release. -Andrei * We are not a clone. *

« previous php.smarty.general (#3605) next »