Reply to Re: [SMARTY] Re: $smarty version

Your name:

Reply:


Posted by boots on 01/07/06 12:37

Hey Pete.

I do see what you are getting at and I do think it ought be considered. That
said, I also think that it might be wise to freeze the API in the 2.x branch at
this point. In PHP4, there is no access protection other than by convention --
so technically, $_version can always be reached; furthermore, even though it is
"private" by convention, I would bet real money that you can reliably count on
it being available for the 2.x series.

If you REALLY need a public API call, why not just add a version() method (or
getVersion()) to your custom extended Smarty class?

greets,
xo boots


--- Pedro <daffodil@daffodil.uk.com> wrote:
> I want it from the $smarty class in php and not the template ;-)
>
> Robert wrote:
> > {$smarty.version}
> >
> > This variable contains the version of Smarty the template was compiled
> with.




__________________________________________
Yahoo! DSL – Something to write home about.
Just $16.99/mo. or less.
dsl.yahoo.com

[Back to original 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

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