prev <<
How to write an API endpoint in 2016
>> next
Fat Model
Code inside the controller can only be used in a web context
Move your code into the Model, and all parts of your application can use it:
cron-jobs, fix-up scripts, daemons, tests, ...