My model looks like this:

class User extends AppModel
{
        var $name = 'User';
        uses('sanitize');
        ...
}

And I am receiving the following error as a result: parse error,
unexpected T_STRING, expecting T_FUNCTION

If I comment out the "uses" line above, everything works fine. I'm
using CakePHP 1.1.7.3363 w/ PHP 5. To clean user input, I plan on using
the cleanArray() method from Sanitize in my models beforeSave() method.
Is there a better approach? Please help!

Thanks,

Zack


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