Argh!

I've found the problem. The reason being that I put the whole portion
of the code for the edit() function within an if-clause.

function edit($id=null)
{
    if (!is_null($id)
    {
        ....
    }
}

When the form is returned to the same file for processing, it comes
without the parameter $id. That's why the variable $catedata is
undefined!

Stupid!!!


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to