On Jul 5, 2006, at 2:16 PM, Luke wrote:

>
> How do you use the sanitize methods in cakePHP. I read the manual, but
> it tells you to do this:
>
> // First, include the core library:
>
> uses('sanitize');
>
> // Next, create a new Sanitize object:
>
> $mrClean = new Sanitize();
>
> // From here, you can use Sanitize to clean your data
> // (These methods explained in the next section)
>
> Which doesn't work ANYWHERE.

What doesn't work? The usage should be something like..

$mrClean->cleanArray($nastyData);

(look in the API for all of Sanitize's functions)

-- John

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