In Cake,
How would you put id through a function in control through URL?
example:
Users controller
function Admin($id){
blah blah
}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You would pass it in the URL access that page. For example,
www.example.com/users/admin/1. The1would be passed into the$idfield of your function. If you were setting a link up in your view and using Cake’s HTML helper it would look like: