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
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?
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