Download Counter

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

Best Regards,

Muhammad Robin

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.

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

Thanks,
Regards,
Robin

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