|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
cobex4 Smarty Regular
Joined: 02 Sep 2008 Posts: 74
|
Posted: Mon Jun 21, 2010 10:09 pm Post subject: Smarty 3 |
|
|
Bonsoir,
Je me pause 2 questions :
1 la version de smarty 3 final est prévu pour quand ?
2 La doc actuel et smarty 3 compatible à 100% ou les changement sont énorme ??
Merci d'avance pour les réponses
Librement. |
|
Back to top |
|
Gowser Smarty Pro
Joined: 19 Feb 2008 Posts: 104 Location: Nantes (France)
|
Posted: Tue Jun 22, 2010 3:27 pm Post subject: |
|
|
Bonjour,
1. Toujours pas de date en vue
2. Pour l'instant je n'ai pas eu de soucis avec, pas d'incompatibilités , i est juste plus pointilleux avec l'écriture des plugins.
Il y a énormément de nouveautés syntaxique genre les foreach à la sauce php, des calcul directement dans les accolades, possibilités d'écrire des fonctions smarty dans les tpl, etc ....
Sinon concernant la rétrocompatibilité, il y aura quelques points a voir :
Quote: | However, Smarty 3 works completely different on the inside. Smarty 3 is mostly
backward compatible with Smarty 2, except for the following items:
*) Smarty 3 is PHP 5 only. It will not work with PHP 4.
*) The {php} tag is disabled by default. Enable with $smarty->allow_php_tag=true.
*) Delimiters surrounded by whitespace are no longer treated as Smarty tags.
Therefore, { foo } will not compile as a tag, you must use {foo}. This change
Makes Javascript/CSS easier to work with, eliminating the need for {literal}.
This can be disabled by setting $smarty->auto_literal = false;
*) The Smarty 3 API is a bit different. Many Smarty 2 API calls are deprecated
but still work. You will want to update your calls to Smarty 3 for maximum
efficiency. |
Je t'invites à lire le readme du svn, il y a pleins d'indications intéressantes dedans.
http://smarty-php.googlecode.com/svn/branches/Smarty3Dev/distribution/README
Bonne lecture ! |
|
Back to top |
|
cobex4 Smarty Regular
Joined: 02 Sep 2008 Posts: 74
|
Posted: Thu Jun 24, 2010 7:07 am Post subject: |
|
|
Ok, merci pour la réponse |
|
Back to top |
|
|
|
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
|