Cake PHP redirect with parameters in url

前端 未结 4 1483
挽巷
挽巷 2020-12-24 11:57

I have a page that I want to redirect to that requires parameters in the URL: http://www.example.com/myController/myAction/param1:val1/param2:val2

I know that there

4条回答
  •  不知归路
    2020-12-24 12:54

    Instead, you can use this format also

    redirect('/controller/action/par1:par1/par2:par2/');
    
    
    ?>
    
    redirect('/controller/action/id/10/name/hello/');
    
    ?>
    

提交回复
热议问题