cakephp - parse the part of url and send to function -


i have controller called customers , function called products. have link http://mysite.com/customers/products/{customernumber}/imagefile.png

i want have function imagefile.png once customer put link in browser on site.

howd cakephp

your action called products needs 2 arguments deal that:

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

i hope problem in case, please comment if need on "getting image" case.


Comments

Popular posts from this blog

haskell - Using filter on an item in a list? -

c# - When does PreApplicationStartMethod actually get triggered to run? -

tomcat6 - Exception when stopping container for a with Spring + Quartz + Tomcat web application -