>
> Hello guys,
>
> Can anybody help me why I get this error?
>
> Notice (8): Array to string conversion...
>
> I try to explode a url, here is the code:
> $var = $this->params["url"];
> $res = explode("/", $var);
>
> then
> I debug the $res...
>
> debug($res);
>
> then I got those error...
>
> can anyone help me?
Not sure, but it seems that your url param doesn't have
the slash character (?) or it should be escaped.
As fain182 said, try debug($var) to see what's happen.
Best regards
--
MARCELO DE F. ANDRADE
Belem, PA, Amazonia, Brazil
Linux User #221105
http://mfandrade.wordpress.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment