I am using Codeigniter for my website. I have to use cron job to run one of controller function. I am using route in website. And also I am not using index.php in url.
e.g. http://my-domain.com/welcome/show, here welcome is my controller and show is function name of that controller.
I have used like this,
0 * * * * php /home/username/public_html/welcome/show
I have used below cron
php /full-path-to-cron-file/cron.php /test/index
This works for me.
Thanks to all