Step 1: Install Heroku Scheduler add-ons from Heroku.
Step 2: Goto Heroku Scheduler page and add Job, set time interval and add command " php /app/index.php orderupdate crontset jaydip "
Step 2: Goto Heroku Scheduler page and add Job, set time interval and add command " php /app/index.php orderupdate crontset jaydip "
- php = server language
- /app/index.php = Path of the project root index.php
- orderupdate = name of controller
- crontset = name of function
- jaydip = variable name which you want to get into crontset function
Step 3: open Orderupdate.php controller
public crontset function($name){
echo $name;
}
No comments:
Post a Comment