Re: QFC/smarty renderer - visibility

From: Date: Tue, 25 Nov 2003 12:04:28 +0000
Subject: Re: QFC/smarty renderer - visibility
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-9134@lists.php.net to get a copy of this message
Hi! Matthias H. Risse wrote:
I am in need to let my dynamic template know that a group defined in quickform has the attribute visibility=0 -> which meens it wont be shown by default. my feelings says that such infos should be some more in the view, but actually i dont really know how to implement this in the template-logic , because how should the template know about it?
If I correctly understood what you mean, you can pass additional 'style' information with Array renderer: http://pear.php.net/manual/en/package.html.html-quickform.html-quickform-renderer-array.setelementstyle.php This info can later be checked in Smarty.

« previous php.pear.general (#9134) next »