I got an error message like below.

Fatal error: Call to undefined method Sanitize::clean() in C:\AppServ
\www\app\controllers\cms_categories_controller.php on line 18

ant the line 18 is below.

 $this->cleanData = $sanitize->clean( $this->data );

What I have to do?

On Nov 27, 5:26 pm, Josoroma <[EMAIL PROTECTED]> wrote:
> I clean a little bit the code :)
> This works for me, but my question is:
> Where do i have toi clean the data for thissearch, here in the
> controller or inside the model?
>
>         function index() {
>
>                 $this->Benchlink->recursive = 0;
>
>                 uses('sanitize');
>                 $sanitize = new Sanitize();
>
>                 $this->set('findUrlNotCleaned', trim($this->data['formFind']
> ['find']) );
>
>                 $this->cleanData = $sanitize->clean( $this->data );
>
>                 $findUrl = low( trim($this->cleanData['formFind']['find']) );
>
>                 if ( $findUrl != '' ) {
>
>                         $this->set('benchlinks', $this->paginate('Benchlink',
> array("LOWER(`Benchlink`.`url`) LIKE '%" . $findUrl . "%'")));
>
>                 } else {
>
>                         $this->set('benchlinks', $this->paginate());
>
>                 }
>
>         }

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to