Hi!
I've been using CakePHP for a couple of days. I'm testing the
scaffolding function and I've found and resolved a bug.
I have a model with a hasOne relation. When I access to the view of a
example instance of the model I saw a orange "Notice":
"Notice (8): Undefined variable: details [CORE\cake\libs\view
\scaffolds\view.ctp, line 100]"
I've resolved the bug replacing the line 100:
<li><?php echo $html->link(sprintf(__('Edit %s', true),
Inflector::humanize(Inflector::underscore($_alias))),
array('controller'=> $details['controller'], 'action'=>'edit', $
{$singularVar}[$_alias][$_details['primaryKey']]))."</li>\n";?>
for:
<li><?php echo $html->link(sprintf(__('Edit %s', true),
Inflector::humanize(Inflector::underscore($_alias))),
array('controller'=> $_details['controller'], 'action'=>'edit', $
{$singularVar}[$_alias][$_details['primaryKey']]))."</li>\n";?>
I just replaced $details for $_details.
I haven't submited a ticket yet. May I do It or can somenone add the
bug solucion to the trunk branch of the development?
Thank you and sorry for my poor english,
Luis Ortiz
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---