Re: [PHPTAL] tal:attributes question - reducing this statement

2010-03-22 Thread romtek
It (true:) will be very helpful. I've resorted to PHP in cases when true: would've been useful. Has it been available for a long time? On Mon, Mar 22, 2010 at 5:49 AM, Kornel Lesinski kor...@aardvarkmedia.co.uk wrote: On 20 Mar 2010, at 04:35, romtek wrote: function

Re: [PHPTAL] tal:attributes question - reducing this statement

2010-03-19 Thread romtek
2010/3/17 Kornel LesiƄski kor...@aardvarkmedia.co.uk function phptal_tales_erorrclass($fieldname, $nothrow) { return phptal_tales('true:error/'.$fieldname, $nothrow). ? 'error' : NULL; } label class=${errorclass:first_name} labelbox I've noticed true: there. Is true one of PHPTALES?

[PHPTAL] tal:attributes question - reducing this statement

2010-03-17 Thread Levi Stanley
label tal:attributes=class php: (isset(error) error['first_name'])?'labelbox error':'labelbox'First Name:/label Is there a better way to do this? ___ PHPTAL mailing list PHPTAL@lists.motion-twin.com http://lists.motion-twin.com/mailman/listinfo/phptal