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  
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes. If this is not your bug, you can add a comment by following this link. If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
2005-05-09 08:23 UTC
Package:
Bug Type:
Summary:
From: brett at mrphp dot com dot au
New email:
PHP Version: Package Version: OS:

 

 [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..