On Aug 24, 2006, at 12:13 PM, Simplerules wrote:
>
> I have this in a view file:
> <?php echo $html->checkbox('User/Coppa', array('onclick' =>
> "watch('data[User][Coppa]', 'regform', 'birthdate', 'Coppa')")); ?>
>
> but the html attributes are not added.
That's because they are the third parameter rather than the second.
http://api.cakephp.org/
class_html_helper.html#db855761321338874ca6ae5c34d9366a
You can use the API to double check things like this.
-- John
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---