|
From: Buddy T. <me...@my...> - 2006-07-25 00:57:39
|
Hi, I really new to WASP (really dig it!) and had experience with
Smarty. Flexy is much cooler, but I have a small problem. I want to
make a checkbox select depending on a variable from a database.
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've tried using a string and a placeholder but Flexy comes up with an
error.
Controller code:
if($myDatabaseBoolean){
$this->setPlaceholder('checkedString', ' checked="checked" ');
}
Chuck code:
<input name="mycheckbox" type="checkbox" {checkedString} />
If someone can please help me with this issue that would be great.
Thanks,
Buddy
|