[SMARTY] smarty directory organization

From: Date: Sat, 07 Sep 2002 12:57:43 +0000
Subject: [SMARTY] smarty directory organization
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5946@lists.php.net to get a copy of this message
Im trying to organize the default directory setup of smarty and i cant seem to get it to work. I have tried about everything. Here is the layout im looking for: html/smarty/ modules/ smarty/ cache/ configs/ docs/ plugins/ template_c/ Config_File.class.php debug.tpl Smarty.class.php Smarty_Compiler.class.php templates/ index.tpl here would be an example of the path to the Smarty.class.php file: /home/virtual/site5/fst/var/www/html/smarty/modules/smarty/ so in the index.php file, i define things like this: define (SMARTY_DIR,'/home/virtual/site5/fst/var/www/html/smarty/modules/smarty/'); require(SMARTY_DIR.'Smarty.class.php'); in the Smarty.class.php file i have things referenced like this: // public vars var $template_dir = '../../templates/'; // name of directory for templates var $compile_dir = 'templates_c'; // name of directory for compiled templates var $config_dir = 'configs'; // directory where config files are located var $plugins_dir = 'plugins'; // plugin directories I have tried using absolute paths too and many other combinations, but i cant seem to get things to work. Keep getting this as an error in one form or another. All the proper chmoding has been done on the particular directories that needed it. No ownership has been set because i set those directories to 777. Warning: Smarty error: unable to read template resource: "index.tpl" in /home/virtual/site5/fst/var/www/html/smarty/modules/smarty/Smarty.class.p hp on line 589 Warning: MkDir failed (Permission denied) in /home/virtual/site5/fst/var/www/html/smarty/modules/smarty/Smarty.class.p hp on line 1604 Warning: Smarty error: problem creating directory "/%%-79/%%-792059619" in /home/virtual/site5/fst/var/www/html/smarty/modules/smarty/Smarty.class.p hp on line 589 Warning: Smarty error: problem writing '/%%-79/%%-792059619/debug.tpl.php.' in /home/virtual/site5/fst/var/www/html/smarty/modules/smarty/Smarty.class.p hp on line 589 Warning: Failed opening '/%%-79/%%-792059619/debug.tpl.php' for inclusion (include_path='.:/php/includes:/usr/share/php') in /home/virtual/site5/fst/var/www/html/smarty/modules/smarty/Smarty.class.p hp on line 775 Hope someone has some ideas. Thanks, Mark

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