In the first code example on Tabular Input in the The Definitive Guide
if(isset($_POST['Item'][$i])) $item->attributes=$_POST['Item'][$i];
Should read
if(isset($_POST['Items'][$i])) $item->attributes=$_POST['Items'][$i];
I think.
In the first code example on Tabular Input in the The Definitive Guide
if(isset($_POST['Item'][$i])) $item->attributes=$_POST['Item'][$i];
Should read
if(isset($_POST['Items'][$i])) $item->attributes=$_POST['Items'][$i];
I think.
$_POST['Item'][$i] is correct if the model class name is 'Item'.
Yes, i misunderstood the naming convention for the $_POST variables. I see now its explained at the bottom of the Creating Action page.
Perhaps you would consider making it a little more prominent, maybe even repeat it in the Working with Form - Overview page.
Also, a minor grammar point, shouldn't that section be named "Working with Forms" or "Working with a Form"
Thank you! Your suggestion is taken.