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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -