Re: [SMARTY] Newbie issue with Smarty
| From: | Monte Ohrt | Date: | Tue, 21 May 2002 15:02:18 +0000 |
| Subject: | Re: [SMARTY] Newbie issue with Smarty | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-4323@lists.php.net to get a copy of this message | ||
The templates_c directory, where is it? It the same directory as the executing script? If not, make one, or change the $compile_dir path. If it is there, does the web server user have permission to write files into it?
Rich Gray wrote:
NT 4.0/PHP 4.2.1 CGI Mode Smarty v2.1.1 Apache/1.3.22 I have just downloaded Smarty to play around with and am going through the QUICKSTART instructions and I get this problem already... Warning: Failed opening 'templates_c\117\1172603085\0.php' for inclusion (include_path='d:/Program Files/Apache Group/Apache/htdocs') in d:\Program Files\Apache Group\Apache\htdocs\test\smarty-2.1.1\Smarty.class.php on line 641 Here is the index.php file I am using... <?php define("SMARTY_DIR","d:/Program Files/Apache Group/Apache/htdocs/test/smarty-2.1.1/"); require(SMARTY_DIR."Smarty.class.php"); $smarty = new Smarty; $smarty->assign("Name","Ned"); $smarty->display("index.tpl"); ?> Line 641 of the class is this ... include($_smarty_compile_path); So if Smarty is dynamically creating the subdirectories when it compiles the php code then how will php's include path get reset? Am I missing something obvious - I'm sure I am! TIA Rich-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.