cakephp - Redirect without changing the url -
how can redirect without changing url?
i use this:
$this->redirect('/lojas/index');
or this:
$this->redirect(array('controller' => 'servicos', 'action' => 'index'));
but these 2 forms url changes. need continue same before redirect.
anyone have idea how solve?
i got retrieving session variable in file routes, , using variable "name" in url.
app::uses('cakesession', 'model/datasource'); $sessao = cakesession::read('loja'); router::connect( "/".$sessao['storename'], array('controller' => 'lojas', 'action' => 'index'));
Comments
Post a Comment