Thread: Cron Job help
View Single Post
  #1  
Old 05-27-2017, 01:45 AM
KatFennec's Avatar
KatFennec KatFennec is offline
Member
 
Join Date: Apr 2017
Posts: 57
Gender: Female
Credits: 8,125
KatFennec is on a distinguished road
Default Cron Job help

I'm trying to set up cron jobs to decrease a stat several times a day on each adoptable, but I'm running into some trouble and I'm not sure if it's the cron job itself or the PHP. Note that I'm specifically interested in Cron Jobs, not scheduled tasks.



cron.php
PHP Code:
<?php
class CronController extends AppController{

    public function 
__construct(){

    }
    
    public function 
index(){

    }
    
    public function 
lowerFullness() {
        
$mysidia Registry::get("mysidia");
        
$mysidia->db->update("owned_adoptables", array("fullness" => -10));
    }
    
}  
?>
__________________
Reply With Quote