newbie: templates dir position...
| From: | Thanasis Polihronakis | Date: | Thu, 16 May 2002 19:50:42 +0000 |
| Subject: | newbie: templates dir position... | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-4245@lists.php.net to get a copy of this message | ||
Hello,
I'm trying to setup smarty to our already in development project and i encounter some difficulties.
I've looked through the digest but i found noone mentioning this problem... or i cant understand the obvious...
I have put the smarty classes outside my document root in the classes directory with all the other classes i have.
Initialises perfectly and is working.
Created a templates/ and templates_c/ dir in document root, and was able to see the 'hello world' thingy ;)
now the problem is that when i try to GET a say /folder/script.php file that calls smarty templates, smarty tryes to find the template in /folder/templates/ which is fine, but also tryes to create the templates_c dir in the /folder folder... which is not fine...
Do i have to create templates and templates_c folders in each of every folder/subfolder i have?
I have tryed every possible combination with SMARTY_DIR but no luck...
The ideal solution would be to have templates and templates_c directories out of my document root, can this be done with smarty?
What am i doing wrong?
babbos
______________________
http://eyersee.org