Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.3.13

Request #4298 Fancy HTML stuff needs documenting.. (Request for HTML attributes with no value)
Submitted: 2005-05-06 17:04 UTC
From: brett at mrphp dot com dot au Assigned:
Status: Verified Package: HTML_Template_Flexy
PHP Version: Irrelevant OS: Irrelevant
Roadmaps: (Not assigned)    
Subscription  


 [2005-05-06 17:04 UTC] brett at mrphp dot com dot au
Description: ------------ There does not seem to be a way to conditionaly print "checked" in a checkbox element or "multi" into a select element. Perhaps I am overlooking something or the documentation is missing this example. If this is the case, can someone please email me a *slap*?

Comments

 [2005-05-09 08:23 UTC] alan_k
$output->checkedtest = "checked"; .... <input type="checkbox" flexy:raw="{checkedtest}"> or using the flexy elements: $e['checkboxtest'] = new HTML_Template_Flexy_Element; $e['checkboxtest']->setValue('on'); .. or ... $e['checkboxtest']->attributes['checked'] = true; <input type="checkbox" name="checkboxtest" value="on"> for select $e['selecttest']->attributes['mulitple'] = true; or use the flexy:raw stuff.. That should do it..