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.