On Mon, Jun 1, 2009 at 5:57 AM, randalle2 <[email protected]> wrote: > > 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 [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 -~----------~----~----~----~------~----~------~--~---
