XF 2.0 Creating Cron File

Mythotical

Well-known member
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

Well-known member
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.
 
Top