Sorry, my mistake: I do have version 1.1
So what should the code read now?
When I do this:
uses('Sanitize');
$sanitize = new Sanitize();
pr($sanitize);
and then exit;
I get this:
sanitize Object
(
)
If I remove "exit;" to let the script go on, the email is sent, but in
the email I get:
(Error rendering Element: email/text/default)
On 14 mrt, 01:34, "Mariano Iglesias" <[EMAIL PROTECTED]>
wrote:
> My bad.
>
> Good thing I asked him to do new Sanitize() and then pr
>
> -MI
>
> ---------------------------------------------------------------------------
>
> Remember, smart coders answer ten questions for every question they ask.
> So be smart, be cool, and share your knowledge.
>
> BAKE ON!
>
> blog:http://www.MarianoIglesias.com.ar
>
> -----Mensaje original-----
> De: [email protected] [mailto:[EMAIL PROTECTED] En nombre
> de gwoo
> Enviado el: Martes, 13 de Marzo de 2007 09:27 p.m.
> Para: Cake PHP
> Asunto: Re: email form
>
> Sanitize cleanArray can not be called statically in 1.1. That was part
> of the reason for the switch to clean. Also in 1.1 cleanArray uses a
> reference of whatever you pass it, so you do not have to do $this-
>
> >data =.
>
> To sum it up, in 1.1 using Sanitize you must create an instance, while
> in 1.2 you can call it either statically or after creating the
> instance.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---