Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
  • How Cake PHP redirect with parameters in url

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 3.11k
    Comment on it

    Hello readers, If you are using cakephp and want to redirect user to any other page/controller with some passing values in url, Well cakephp provides you its own syntax written in php, check bellow example:

                  "controller" => "Controller", 
                  "action" => "user",
                  "?" => array(
                      "username" => "user123",
                      "usertype" => "staff"
                  ) ),

    Here I want to pass username and usertype to my controller with values- user123 and staff.

    Finally the url will be appear like this-


 0 Comment(s)

Sign In

Sign up using

Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: