Cupara Well-known member Jan 18, 2018 #1 I have the following in my cron file: PHP: class Guild { public static function Realms() { .....code here..... } } I'm getting an error regarding expecting { after class. Do I need to extend something similar to AbstractJob as I did in XF1?
I have the following in my cron file: PHP: class Guild { public static function Realms() { .....code here..... } } I'm getting an error regarding expecting { after class. Do I need to extend something similar to AbstractJob as I did in XF1?
Jeremy P XenForo developer Staff member Jan 18, 2018 #2 Is your web server throwing this error? Sounds more like there's a syntax error somewhere, though nothing seems wrong with the sample you've provided. Cron classes don't need to extend any base class.
Is your web server throwing this error? Sounds more like there's a syntax error somewhere, though nothing seems wrong with the sample you've provided. Cron classes don't need to extend any base class.
Cupara Well-known member Jan 18, 2018 #3 That is what I thought. I'll look through my code. Thanks @Jeremy P