I've been playing with CakePHP for a few weeks now and just when I
thought I was getting the hang of things, I've run into a problem I
can't quite figure out. I keep getting the following notices whenever
I run the html checkbox helper in Cake 1.1.

Notice: Undefined offset: 1 in C:\Program Files\Apache Group
\Apache2\htdocs\alpha\cake\libs\view\helpers\html.php on line 947

Notice: Undefined index: value in C:\Program Files\Apache Group
\Apache2\htdocs\alpha\cake\libs\view\helpers\html.php on line 279

I know there is nothing wrong with the model or controller because if
I build the checkbox using traditional html, shown in the second
commented line, I don't get any errors. Any help would be appreciated,
thanks.

echo '<td>'.$html->checkbox($catalogstory['CatalogStory']
['story_id']).'</td>';
//echo '<td><input type="checkbox" name="'.
$catalogstory['CatalogStory']['story_id'].'"></td>';


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to