Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Extending smarty functionality when downloaded via smarty

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
gianiaz
Smarty Rookie


Joined: 14 Dec 2006
Posts: 25
Location: Italy

PostPosted: Sun Apr 03, 2016 7:05 pm    Post subject: Extending smarty functionality when downloaded via smarty Reply with quote

Hi, I'm using smarty from a lot of time, now I've decided to include smarty in my projects via composer.

I'm relative new to composer, and now I'm having this doubt:

I have some output filters and plugins wrote by myself, and I don't know if is it correct to put for example my plugin into:

/vendor/smarty/smarty/libs/plugins

I don't think this is the correct way, and my fear is to lose my plugins when updating via composer.

Can you give me some suggestion? Smile

Thank you
Back to top
View user's profile Send private message Visit poster's website
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Sun Apr 03, 2016 7:12 pm    Post subject: Re: Extending smarty functionality when downloaded via smart Reply with quote

gianiaz wrote:
I have some output filters and plugins wrote by myself, and I don't know if is it correct to put for example my plugin into:

/vendor/smarty/smarty/libs/plugins

I don't think this is the correct way, and my fear is to lose my plugins when updating via composer.

Can you give me some suggestion? Smile

It was never a correct way to mix your custom extensions with base Smarty code.
Place them where you can control them. And tell Smarty where it can find them.
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Wed Apr 20, 2016 12:33 am    Post subject: Reply with quote

Create a separate folder outside /vendor for your custom plugins. Make it known with $smarty->addPluginsDir(...)
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General 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