edit setup_smarty.php in tikiroot directory to include external smarty

Copy to clipboard
define('SMARTY_DIR', "/usr/lib/php/Smarty/"); require_once ( '/usr/lib/php/Smarty/Smarty.class.php');

and below edit the plugins_dir array, that dirname stuff is unneccessary:

Copy to clipboard
$this->plugins_dir = array( // the directory order must be like this to overload a plugin "lib/smarty_tiki", SMARTY_DIR."plugins" );

Note: tiki-install.php also depends on smarty so use this after working install, or modify tiki-install.php appropriately

Copy to clipboard
define('SMARTY_DIR', "/usr/lib/php/Smarty/"); require_once (SMARTY_DIR . 'Smarty.class.php'); $this->plugins_dir = array( // this is the above plugins_dir array hack again "lib/smarty_tiki",

maybe check your php_admin_value open_basedir to include /usr/lib/php/Smarty in your vhost settings or php.ini or htaccess depending on your configuration

Copy to clipboard
php_admin_value open_basedir /var/www/tiki19:/tmp:/usr/lib/php/Smarty

Note: this works with latest Smarty 2.6.7 at the time of writing ang

Copy to clipboard
copy /usr/lib/php/Smarty/internals /usr/lib/php/Smarty/core

HowtoUseExternalAdodb for further details on Tikiwiki Tweaking

Page last modified on Monday 21 June 2010 04:38:39 GMT-0000