netkingZ
Active member
Hello ,
I'm doing an add-on when I'm using the method Cron Jobs (Crontab) and I got to the point where I make the call to a specified file using this system. The problem occurs when I make a call to a file with class and function the answer I get is:
This means that the Cron Jobs are reading something that is there but does not know what to do even though the controls are right.
For verification I tried to write the same code outside the class and function and work properly.
At this point I think I'm wrong class and function are as follows:
how can I do?
I'm doing an add-on when I'm using the method Cron Jobs (Crontab) and I got to the point where I make the call to a specified file using this system. The problem occurs when I make a call to a file with class and function the answer I get is:
Status: 500 Internal Server Error
Content-type: text / html
This means that the Cron Jobs are reading something that is there but does not know what to do even though the controls are right.
For verification I tried to write the same code outside the class and function and work properly.
At this point I think I'm wrong class and function are as follows:
Code:
xenOne_Model_xenOne class extends XenForo_Model
{
public function getSomeData ()
{
}
}
how can I do?