re:[SMARTY] creating dir problem
| From: | Dennis Gearon | Date: | Thu, 20 Feb 2003 08:50:06 +0000 |
| Subject: | re:[SMARTY] creating dir problem | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-7979@lists.php.net to get a copy of this message | ||
I found the problem. I made an assumption.
After all the examples and tutorials told me that if smarty was not in the standard location, I
could handle that by setting 'SMARTY_DIR' constant, and seeing that the:
cache
config
templates
template_c
plugins
directories were **IN** SMARTY_DIR, I A-S-S-U-M-E-D that setting 'SMARTY_DIR; would be
picked up by the smarty object and used for finding all those directories. It seems
very NON intuitive that this is not the case.
Is there any reason why the class definition for smarty does not have:
var $template_dir = SMARTY_DIR . 'templates';
var $compile_dir = SMARTY_DIR . 'templates_c';
var $config_dir = SMARTY_DIR . 'configs';
var $plugins_dir = array(SMARTY_DIR . 'plugins');
var $cache_dir = SMARTY_DIR . 'cache';
????
These can still be over ridden by extending class 'smarty', or by using a value in the a
redefined constructor as the smarty dir.
and where is the constant, 'DIRECTORY_SEPARATOR' (from line 50 of Smarty.class.php
defined?