0

I have a controller called customers and the function called products. I have link like this http://mysite.com/customers/products/{customernumber}/imagefile.png

I want to have my function get the imagefile.png once my customer put link in the browser on my site.

Howd I do that with cakephp

1 Answer 1

2

Your action called products needs two arguments to deal with that:

function products($customernumber, $image) {
    //here you can access these variables and use them for further processing
}

I hope this was your problem in this case, please comment if you need help on the "getting the image" case.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.