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

Smarty extends PEAR

 
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
fduarte42
Smarty Rookie


Joined: 09 May 2003
Posts: 8

PostPosted: Wed Dec 17, 2003 1:25 pm    Post subject: Smarty extends PEAR Reply with quote

Hi,

I'm writing an OO Templating Engine using smarty for my forms and widgets. My class extends Smarty, but it also needs to be a PEAR Object.

I solved that making Smarty extending PEAR and inserting the call to the PEAR constructor and destructor.

Could it Smarty extend PEAR as an default? So I don't need to patch it every time.

thx

Tito
Back to top
View user's profile Send private message
Gerald
Smarty Regular


Joined: 26 Nov 2003
Posts: 53
Location: Lyon [France]

PostPosted: Wed Dec 17, 2003 3:12 pm    Post subject: Reply with quote

Well, imho, I don't think they will purposely _add_ a dependance on the smarty class.

Two years ago, Smarty did extends pear (as far as i can remember), but not anymore.

If this dependance deserves nothing, why should they care ?
Back to top
View user's profile Send private message Visit poster's website
boots
Administrator


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

PostPosted: Wed Dec 17, 2003 5:37 pm    Post subject: Reply with quote

I don't recall if Smarty ever extended Pear--but the config_file class did at one time for the error handling capabilities (which are ok, but not the best IMO).

What would be the benefit of extending Pear, other than your project prefers it? I don't see any but I'd like to hear your opinion. To me, it is just extra overhead.

Also, why is it necessary for Smarty to extend Pear in your project at all? Is it for error handling? If so, there may be other ways to hook them together.
Back to top
View user's profile Send private message
mniskanen
Smarty Rookie


Joined: 26 Apr 2003
Posts: 20
Location: Lieksa,Finland

PostPosted: Fri Dec 26, 2003 6:22 pm    Post subject: Reply with quote

boots wrote:

What would be the benefit of extending Pear, other than your project prefers it? I don't see any but I'd like to hear your opinion. To me, it is just extra overhead.


And also some extra trouble fror those that are running their stuff in a
typical safe_mode web hotel where PEAR cannot be include()d. This would
mean that one should install PEAR by hand for every installation of a
Smarty application. No good.
Back to top
View user's profile Send private message
messju
Administrator


Joined: 16 Apr 2003
Posts: 3336
Location: Oldenburg, Germany

PostPosted: Sat Dec 27, 2003 8:23 am    Post subject: Reply with quote

to say it with pear-bureaucracy:
-1
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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