You are here: Re: [SMARTY] When to call parent constructor? « Smarty Templates Posts « IT news, forums, messages
Re: [SMARTY] When to call parent constructor?

Posted by "messju mohr" on 10/29/05 22:49

On Sat, Oct 29, 2005 at 03:10:50PM +0100, Marcus Bointon wrote:
> I've subclassed Smarty - should I call the parent constructor before
> or after setting my own options in my constructor?

I'd call it at the beginning, but since the constructor does nothing
more than assigning SCRIPT_NAME and won't do much more in the
foreseeable future it really doesn't matter much when you call it
inside you constructor.

greetings
messju

[...]
>
> Marcus
> --
> Marcus Bointon
> marcus@bointon.com | http://www.bointon.com/
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация