Loading...
 

HowtoUseExternalSmarty

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

Upcoming Events

1)  21 Mar 2024 18:00 GMT-0000
Tiki Roundtable Meeting
2)  18 Apr 2024 18:00 GMT-0000
Tiki Roundtable Meeting
3)  16 May 2024 18:00 GMT-0000
Tiki Roundtable Meeting
4)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
8) 
Tiki birthday
9)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  21 Nov 2024 15:00 GMT-0000
Tiki Roundtable Meeting