Download Counter


#1

Someone , i need help.
how to create download counter in cakephp 2.x ,

Best Regards,

Muhammad Robin


#2

You need to pass the file through fpassthru() with the right set of headers.
You’ll need to set up a table with a column to increment when the controller/action you set is invoked.


#4

I am not understand ,
Can you give me example code…

Thanks,
Regards,
Robin


#5

https://book.cakephp.org/3.0/en/controllers/request-response.html#sending-files