|
From: Jason P. <jp...@jc...> - 2006-07-26 12:14:27
|
Buddy Toups wrote:
> This is what I want outputted if the preset value is true:
> <input name="mycheckbox" type="checkbox" checked="checked" />
>
> or if its false:
> <input name="mycheckbox" type="checkbox" />
I Might be mis-remembering how I did this, and I'm unable to check at
the moment, but I thought you could use setFormElement to do this.
in chunk:
<input name="mycheckbox" type="checkbox" />
in Controller:
if($myDatabaseBoolean){
$this->setFormElement('mycheckbox',true);
}
or even
$this->setFormElement('mycheckbox',$myDatabaseBoolean);
Does that work?
Jay
--
Jason C Penney (jp...@jc...)
http://www.jczorkmid.net/~jpenney/
|