|
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 |
gianiaz Smarty Rookie
Joined: 14 Dec 2006 Posts: 25 Location: Italy
|
Posted: Sun Apr 03, 2016 7:05 pm Post subject: Extending smarty functionality when downloaded via smarty |
|
|
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?
Thank you |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Sun Apr 03, 2016 7:12 pm Post subject: Re: Extending smarty functionality when downloaded via smart |
|
|
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? |
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 |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Wed Apr 20, 2016 12:33 am Post subject: |
|
|
Create a separate folder outside /vendor for your custom plugins. Make it known with $smarty->addPluginsDir(...) |
|
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
|