|
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 |
bemorph Smarty n00b
Joined: 19 Apr 2003 Posts: 1
|
Posted: Sat Apr 19, 2003 10:50 pm Post subject: prefered installation path |
|
|
What would the most recommended installation path for Smarty?
I installed it under /usr/local/apache/lib/php and use the include command
to work with smarty. Is this ok, or are there some things to care about? |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Sat Apr 19, 2003 11:32 pm Post subject: |
|
|
I think that would depend on your environment. If you have a place that you keep PHP libararies, then that might be where you put it. I keep mine under /usr/local/lib/php/smarty because /usr/local/lib/php is the home of my PEAR library. |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Sun Apr 20, 2003 3:11 am Post subject: |
|
|
There is no "best" here as it all depends on what you are doing and what you want to protect and/or make easier.
Are you worried about upgrade incompatabilities? Do you some legacy smarty sites that may not get upgraded when new versions of smarty are released? Or do you want to enforce a single version of smarty across several developers? There is no catch-all that I am aware of to handle the various scenarios that you may want to support.
I myself use a relatively conservative approach to libraries as I've been burned on incompatabilities between upgrades. I like to embed a local copy of smarty directly into my application directory and use the SMARTY_DIR to make sure that smarty can find its library files. This also makes it easier to package and distribute my applications as one can never be sure what will be available on a new server. Fortunately, the smarty library is small enough (especially if you only bundle the absolute minimum files that your application requires) that embedding it is not a completely goofy thing to do. |
|
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
|