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 > Unassign plugin updated
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Unassign plugin updated

Réponse
 
LinkBack Outils de la discussion
Vieux 16/05/2006, 17h23   #1 (permalink)
Davide Muzzarelli
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Unassign plugin updated

The unassign plugin is updated, now it can unassign also an array item!
Unassign is good to mantain clean your templates.

The syntax is simple:
{unassign var=$foo}

For unassign an array item:
{unassign var=$foo.bar}

See and download at:
http://smarty.incutio.com/?page=unassign

Byez!

--
Davide "Design" Muzzarelli
www . dav - muz . net
www. fraw . info - a PHP framework with Smarty
  Réponse avec citation
Vieux 16/05/2006, 18h43   #2 (permalink)
Osiris Pedroso
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Capitalize and accented characters

I am seeing an odd result of capitalize.

Basically, the letter after an accented character is capitalized, as if it a
new word has started.
Ex:
The word typed is "gráfica", the capitalized result returned by smarty is
"GráFica".

In some SW I wrote, I consider words to match the regexp "[a-zà-ü]", but I
think capitalize is matching "[a-z]" only.

Appreciate any insights,
Osiris Pedroso
--
Optimizer Consulting
http://www.swoptimizer.com
Phone: 1.415.259.5760
-----Original Message-----
From: Davide Muzzarelli [mailto:reg@dav-muz.net]
Sent: Tuesday, May 16, 2006 1:24 PM
To: smarty-general@lists.php.net
Subject: [SMARTY] Unassign plugin updated

The unassign plugin is updated, now it can unassign also an array item!
Unassign is good to mantain clean your templates.

The syntax is simple:
{unassign var=$foo}

For unassign an array item:
{unassign var=$foo.bar}

See and download at:
http://smarty.incutio.com/?page=unassign

Byez!

--
Davide "Design" Muzzarelli
www . dav - muz . net
www. fraw . info - a PHP framework with Smarty

--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
  Réponse avec citation
Vieux 19/05/2006, 00h24   #3 (permalink)
Marcus Bointon
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [SMARTY] Capitalize and accented characters

On 16 May 2006, at 18:43, Osiris Pedroso wrote:

> In some SW I wrote, I consider words to match the regexp "[a-zà-
> ü]", but I
> think capitalize is matching "[a-z]" only.


It would be nicer to match something more general like [\w], if only
there was a lower-case-only equivalent! I wonder if the unicode
patterns would work even now? For example, [\p{Ll}] should match all
lower case letters. Or perhaps you could convert the string to
unicode before matching on it? Would be slower, but should be much
more reliable.

Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
marcus@synchromedia.co.uk | http://www.synchromedia.co.uk
  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 03h40.


É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,08631 seconds with 11 queries