Loading...
 

HowtoUseExternalSmarty

edit setup_smarty.php in tikiroot directory to include external smarty

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:

$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

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

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 /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

Upcoming Events

No records to display

Why Register?

Register at tiki.org and you'll be able to use the account at any *.tiki.org site, thanks to the InterTiki feature. A valid email address is required to receive site notifications and occasional newsletters. You can opt out of these items at any time.