How to download files from my website?

Dear all,

I m new on cakephp.

I created some controllers and layout, everything is ok.

I have a question about downloading files.

I would like users to download some files on my website.

Is there any special way to do it ? I saw I need to create FilesController and add some routes ?

You can provide download functionality in any controller, doesn’t have to be a specific FilesController.

See Request & Response Objects - 4.x on what you have to do in your controller methods to send a file.