|
|
|
#1 (permalink) |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#2 (permalink) |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#3 (permalink) |
|
Messages: n/a
Hébergeur: |
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 |
|
![]() |
| Outils de la discussion | |
|
|