Re: [SMARTY] Problems with php file inclusion

From: Date: Wed, 10 Apr 2002 13:30:56 +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-3606@lists.php.net to get a copy of this message
This was fixed, it will be in the next release. For the impatient, use the CVS version of Smarty. Get that from http://smarty.php.net/ 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? Thanks **************************************** Diego Toma
-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.

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