Loading...
 
Skip to main content

Custom Share Module 0.1dev

History: HowtoUseExternalSmarty

Preview of version: 3

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
See

DevTips
HowtoDev
TikiWikiInternationalizationAndLanguages
InstallTikiDev
TikiProfilesDev
ContentPacksDev - TikiMediaReleaseGentooLinux, TikiGamesGentooLinux, TikiStyleReleaseGentooLinux
InstallMultipleTikis - InstallVirtualHosting

HowtoUseExternalAdodb for further details on Tikiwiki Tweaking

History

Advanced
Information Version
Marc Laporte 5
View
Lorinc 4
View
Lorinc 3
View
Lorinc 2
View
Lorinc 1
View

Upcoming Events

1)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4) 
Tiki birthday
5)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting