You must unset 'admin' prefix to redirect to non-admin URL:
$this->redirect(array('admin' => false,
'controller'=>'customers','action' => 'view',$id));
On Friday, August 24, 2012 9:18:47 PM UTC+2, Lucas Simon Rodrigues
Magalhaes wrote:
>
> Uhuhuuulll
>
> Thnx dude!!!
>
> Em sexta-feira, 24
Uhuhuuulll
Thnx dude!!!
Em sexta-feira, 24 de agosto de 2012 15h11min35s UTC-3, ivnrmc escreveu:
>
> OR
>
> $this->redirect('/customers/view/'.$id);
>
> :-)
>
>
>
> 2012/8/24 Lucas Simon Rodrigues Magalhaes
> >
>
>>
>>1. //$id = $this->request->data['ProductDetail']['customer_id'];
>>
OR
$this->redirect('/customers/view/'.$id);
:-)
2012/8/24 Lucas Simon Rodrigues Magalhaes
>
>1. //$id = $this->request->data['ProductDetail']['customer_id'];
>2.
>
>
> forget this line comment
>
> $id = $this->request->data['ProductDetail']['customer_id'];
>
> Em sexta-feira, 24 de a
1. //$id = $this->request->data['ProductDetail']['customer_id'];
2.
forget this line comment
$id = $this->request->data['ProductDetail']['customer_id'];
Em sexta-feira, 24 de agosto de 2012 15h01min02s UTC-3, Lucas Simon
Rodrigues Magalhaes escreveu:
>
> After add the product deta
Maybe you shouldn't pass the id of the customer into the url. Inside
customer controller, maybe you can just set it like this:
$id = $this->Auth->user('id');
And after that, you got the id of the currently logged user. and every time
you redirect to this controller and this action, it will take t
After add the product detail, I wanna redirect to controller customer
action view, and my customer id.
look;
http://pastebin.com/84ZTTq2T
Em sexta-feira, 24 de agosto de 2012 14h44min35s UTC-3, ivnrmc escreveu:
>
> What exctly are you trying to accomplish?
> Maybe you can try with $this->redir
What exctly are you trying to accomplish?
Maybe you can try with $this->redirect($this->referer());
2012/8/24 Lucas Simon Rodrigues Magalhaes
> I doing it:
>
> $this->redirect(array('controller'=>'customers','action' => 'view',$id));
>
> but do not work.
>
> Invalid customer
>
> *Error: * The r
I doing it:
$this->redirect(array('controller'=>'customers','action' => 'view',$id));
but do not work.
Invalid customer
*Error: * The requested address *'cadastros/admin/customers/view'* was not
found on this server.
--
You received this message because you are subscribed to the Google Grou