Re: [SMARTY] Newbie issue with Smarty
| From: | Monte Ohrt | Date: | Tue, 21 May 2002 15:16: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-4326@lists.php.net to get a copy of this message | ||
Is "." in your php_include path?
Also, you can try changing $compile_dir to "./templates_c" as a test to see if it is a path related problem.
Rich Gray wrote:
yes templates_c is in the directory where the index.php scipt is located i.e. this is the structure ... test\configs test\Smarty-2.1.1\... test\templates\index.tpl test\index.php test\templates_c\117\1172603085\0.php-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.-----Original Message----- From: Monte Ohrt [mailto:monte@ispi.net] Sent: 21 May 2002 16:02 To: Rich Gray Cc: smarty-general@lists.php.net Subject: Re: [SMARTY] Newbie issue with Smarty 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 goingthrough theQUICKSTART 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') ind:\ProgramFiles\ApacheGroup\Apache\htdocs\test\smarty-2.1.1\Smarty.class.php on line641 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 itcompiles thephp code then how will php's include path get reset? Am Imissing somethingobvious - I'm sure I am! TIA Rich-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc. -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php