|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
SeventhEyeJosh Smarty Rookie
Joined: 18 Mar 2009 Posts: 9
|
Posted: Wed Mar 18, 2009 7:52 pm Post subject: Where do i put it ?? X( |
|
|
Hello all!
Im very new to smarty and cant seem to figure out where to put the plugin!
I downed this pagination plugin -> (well, apparently i cant post urls / links ;( but it's the one from smarty. net -> plugins -> pagination)
but cant seem to figure out which directories to move the different files into!
thanks very much in advance for any help!!! |
|
Back to top |
|
SeventhEyeJosh Smarty Rookie
Joined: 18 Mar 2009 Posts: 9
|
Posted: Wed Mar 18, 2009 8:51 pm Post subject: |
|
|
-solved- |
|
Back to top |
|
bimal Smarty Elite
Joined: 19 Apr 2007 Posts: 423
|
Posted: Wed Mar 18, 2009 8:53 pm Post subject: Put your plugins separately. |
|
|
Never mixup your own plugins (the ones that DO NOT come with standard Smarty distribution). The $plugins_dir configuration holds an array of possible locations of Smarty plugins.
Here is my typical/portable configuration:
Code: | define('__ROOT__', dirname(__FILE__);
require_once('smarty/Smarty.class.php');
$smarty = new Smarty();
$smarty->template_dir = __ROOT__.'/smarty_templates/';
$smarty->compile_dir = __ROOT__.'/smarty_compiles/';
$smarty->config_dir = __ROOT__.'/smarty_configs/';
$smarty->cache_dir = __ROOT__.'/smarty_cache/';
$smarty->caching = false;
$smarty->plugins_dir[]= __ROOT__.'/smarty_plugins/'; |
Forget about where the smarty-default plugins are. Now, you can put your own plugins into smarty_plugins directory. Thats pretty nice. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|