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

Am I not allowed to edit & redistrabute Smarty

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


Joined: 11 Feb 2005
Posts: 16

PostPosted: Fri Dec 16, 2005 5:41 pm    Post subject: Am I not allowed to edit & redistrabute Smarty Reply with quote

I'm building a PHP5 CMS using Smarty as my template engine. As of now, I have error handling turned off, however I would like to have an in-depth error reporting system and becuase of the use of vars in the Smarty class, I get errors about vars being depreceated and to use public/private... etc.


Also, in addition to modifying the vars, can I edit smarty to change the way variables are handled? I'd like all arrays to to be $var[key] instead of $var.key so I can add to values. Such as $var[key].' - '.$var[name]


Am I allowed to make these changes and redistrubute it with my commercial application as long as I provide the Smarty license in the download package?
Back to top
View user's profile Send private message
TGKnIght
Smarty Junkie


Joined: 07 Sep 2005
Posts: 580
Location: Philadelphia, PA

PostPosted: Fri Dec 16, 2005 6:51 pm    Post subject: Reply with quote

http://smarty.incutio.com/?page=SmartyFrequentlyAskedQuestions#other-1
Back to top
View user's profile Send private message Visit poster's website
Jeremy-
Smarty Rookie


Joined: 11 Feb 2005
Posts: 16

PostPosted: Fri Dec 16, 2005 7:07 pm    Post subject: Reply with quote

I noticed that, however the answer reads:

A: Yes, you can. Smarty is licensed under the [LGPL] and distributing an unmodified smarty source as part of a commercial product is just fine.

That's why I decided to ask.
Back to top
View user's profile Send private message
TGKnIght
Smarty Junkie


Joined: 07 Sep 2005
Posts: 580
Location: Philadelphia, PA

PostPosted: Fri Dec 16, 2005 7:24 pm    Post subject: Reply with quote

Ok I didn't see that comment... but here is an excerpt from the LGPL contained in Smarty.class.php

Quote:

* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.


Another excerpt taken from http://www.gnu.org/copyleft/lesser.html

Quote:

We protect your rights with a two-step method: (1) we copyright the library, and (2) we offer you this license, which gives you legal permission to copy, distribute and/or modify the library.
Back to top
View user's profile Send private message Visit poster's website
Jeremy-
Smarty Rookie


Joined: 11 Feb 2005
Posts: 16

PostPosted: Fri Dec 16, 2005 7:27 pm    Post subject: Reply with quote

Awesome! Thank you, TGKnIght. Smile
Back to top
View user's profile Send private message
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Sat Dec 17, 2005 1:50 am    Post subject: Reply with quote

Jeremy- wrote:
I noticed that, however the answer reads:

A: Yes, you can. Smarty is licensed under the [LGPL] and distributing an unmodified smarty source as part of a commercial product is just fine.

That's why I decided to ask.


Yes, unmodified. Unlike a BSD license, if you modifiy the sources then you must also licence (and make available) your modified sources under the same terms that it was provided to you (so either as LGPL or GPL). Note that you only have to L/GPL and release the modified versions of Smarty -- not your otherwise unrelated code that happens to use Smarty.

So, if you want to release a product with a modified version of Smarty, you can do so as long as you meet the obligations of the LGPL as TGKnight pointed out Wink

Cheers.
Back to top
View user's profile Send private message
TGKnIght
Smarty Junkie


Joined: 07 Sep 2005
Posts: 580
Location: Philadelphia, PA

PostPosted: Sat Dec 17, 2005 6:49 am    Post subject: Reply with quote

Ok yes, this is a conversation I've had with my boss a few times... like you said we the package we are creating includes the smarty library, but we are providing that to them as LGPL, the custom programming such as the templates, custom php code, database design etc is what we are actually selling.
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 -> 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