Using templates from any directory under Win32 ?

From: Date: Sun, 07 Oct 2001 00:59:51 +0000
Subject: Using templates from any directory under Win32 ?
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1621@lists.php.net to get a copy of this message
I use my laptop running Apache/PHP/MySQL to test my code locally before committing to a CVS server for some of my personal projects and I receive this error if I try to use a template from any directory (as described in Smarty's documentation at http://www.phpinsider.com/php/code/Smarty/docs/x548.htm#AEN557). Warning: fopen("./templates_c/file%3Ac%3A%5Cwww%5Chtdocs%5Cv2.phpbrasil.com%5Cdocs%5Ctemplates%5Cbackend%2Findex.tpl.php","w") - No such file or directory in c:\php\pear\Smarty.class.php on line 992 Warning: Smarty error: problem writing './templates_c/file%3Ac%3A%5Cwww%5Chtdocs%5Cv2.phpbrasil.com%5Cdocs%5Ctemplates%5Cbackend%2Findex.tpl.php.' in c:\php\pear\Smarty.class.php on line 1081 Warning: Failed opening './templates_c/file%3Ac%3A%5Cwww%5Chtdocs%5Cv2.phpbrasil.com%5Cdocs%5Ctemplates%5Cbackend%2Findex.tpl.php' for inclusion (include_path='.;c:\php\pear') in c:\php\pear\Smarty.class.php on line 576 As described in the Docs, this is the code to display the template: $tpl->display("file:c:\www\htdocs\v2.phpbrasil.com\docs\templates\backend\index.tpl"); Looks like Smarty doesn't support Win32 style of include paths, or does it? Still related to this problem, is it possible to create sub-directories inside the template directory ? I would love to be able to do this : $tpl->display("backend/index.tpl"); And still have Smarty get the correct file. Putting everything in just one directory makes the maintanance kind of hard ;) Joao -- João Prado Maia <jpm@phpbrasil.com> http://phpbrasil.com - php com um jeitinho brasileiro -- Precisando de consultoria em desenvolvimento para a Internet ? Impleo.net - http://impleo.net/?lang=br

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