Re: Checkbox Problem

2006-08-24 Thread John David Anderson (_psychic_)


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 cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Checkbox Problem

2006-08-24 Thread Simplerules

I guess the CakePHP manual is out of date:
checkbox
string $fieldName
array $htmlAttributes
boolean $return = false


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Checkbox Problem

2006-08-24 Thread John David Anderson (_psychic_)


On Aug 24, 2006, at 12:24 PM, Simplerules wrote:


 I guess the CakePHP manual is out of date:
 checkbox
 string $fieldName
 array $htmlAttributes
 boolean $return = false

Make sure to log a ticket to make sure it gets fixed.

-- John

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Re: Checkbox Problem

2006-08-24 Thread Samuel DeVore

you should file a bug in htts://trac.cakephp.org against that (if
there isn't one already) so John can fix it ;)

On 8/24/06, Simplerules [EMAIL PROTECTED] wrote:

 I guess the CakePHP manual is out of date:
 checkbox
 string $fieldName
 array $htmlAttributes
 boolean $return = false


 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---