Sending String as Files

With CakePHP is really easy to send any string as file.

Sending String as Files
Photo by S Migaj / Unsplash

If you need send string as file to the client you can do it as follows:

In this example you can see how can you send string as iCal file.