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 3

 
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 -> Language: French
View previous topic :: View next topic  
Author Message
cobex4
Smarty Regular


Joined: 02 Sep 2008
Posts: 74

PostPosted: Mon Jun 21, 2010 10:09 pm    Post subject: Smarty 3 Reply with quote

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 Wink

Librement.
Back to top
View user's profile Send private message
Gowser
Smarty Pro


Joined: 19 Feb 2008
Posts: 104
Location: Nantes (France)

PostPosted: Tue Jun 22, 2010 3:27 pm    Post subject: Reply with quote

Bonjour,

1. Toujours pas de date en vue Sad

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
View user's profile Send private message Send e-mail
cobex4
Smarty Regular


Joined: 02 Sep 2008
Posts: 74

PostPosted: Thu Jun 24, 2010 7:07 am    Post subject: Reply with quote

Ok, merci pour la réponse Wink
Back to top
View user's profile Send private message
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 -> Language: French 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