Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Where do i put it ?? X(

 
Post new topic   Reply to topic    Smarty Forum Index -> Plugins
View previous topic :: View next topic  
Author Message
SeventhEyeJosh
Smarty Rookie


Joined: 18 Mar 2009
Posts: 9

PostPosted: Wed Mar 18, 2009 7:52 pm    Post subject: Where do i put it ?? X( Reply with quote

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
View user's profile Send private message
SeventhEyeJosh
Smarty Rookie


Joined: 18 Mar 2009
Posts: 9

PostPosted: Wed Mar 18, 2009 8:51 pm    Post subject: Reply with quote

-solved-
Back to top
View user's profile Send private message
bimal
Smarty Elite


Joined: 19 Apr 2007
Posts: 423

PostPosted: Wed Mar 18, 2009 8:53 pm    Post subject: Put your plugins separately. Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Plugins All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP