View Single Post
  #26  
Old 01-21-2017, 05:57 PM
Dinocanid's Avatar
Dinocanid Dinocanid is offline
Member
 
Join Date: Aug 2016
Location: Maryland, USA
Posts: 516
Gender: Unknown/Other
Credits: 63,656
Dinocanid is on a distinguished road
Default

Okay, so this is what I have in cron.php within the root folder:
PHP Code:
class CronController extends AppController{

    public function 
__construct(){

    }
    
    public function 
index(){

    }
    
    public function 
lowerMood() {
        
$mysidia Registry::get("mysidia");
        
$mysidia->db->update("owned_adoptables", array("mood" => -10));
    }
    
    public function 
lowerHealth() {
        
$mysidia Registry::get("mysidia");
        
$mysidia->db->update("owned_adoptables", array("health" => -10));
    }
    

And this is what my cronjob command is:
Quote:
php -f /home/adopttes/public_html/cron.php
I'm not sure if my command or setup is correct though, since it doesn't work.
__________________

Last edited by Dinocanid; 01-22-2017 at 01:53 PM.
Reply With Quote