PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > php.smarty.general > $smarty version
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
$smarty version

Réponse
 
LinkBack Outils de la discussion
Vieux 05/01/2006, 10h53   #1 (permalink)
Pedro
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut $smarty version

I'm using a shared compile dir across sites and use this

$smarty->compile_id = $_SERVER['SERVER_NAME'].$smarty->_version;

Shouldnt there be a version function in the core class

$smarty->version();

regards

Pete
  Réponse avec citation
Vieux 06/01/2006, 14h47   #2 (permalink)
Robert
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: $smarty version

{$smarty.version}

This variable contains the version of Smarty the template was compiled with.
  Réponse avec citation
Vieux 07/01/2006, 09h36   #3 (permalink)
Pedro
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: $smarty version

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.

  Réponse avec citation
Vieux 07/01/2006, 10h37   #4 (permalink)
boots
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [SMARTY] Re: $smarty version

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
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 01h42.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,08233 seconds with 12 queries