I was working on a project using cakephp (Version 2.5.2) and I need to run shell as cron jobs on my shared hosting server. I faced some issues executing the shell from the cpanel, so I thought about writing this quick tutorial to help other who are struggling with running cron jobs on shared hosting.
Writing the Shell
- I created new shell called Mycron and saved it to app/Console/Command/MycronShell.php
- In my shell I needed to use User model and Email components, so I added t