I've got a class which works perfectly on localhost (PHP 5.6.10),
class Blog
{
static $table = DBPREFIX . '_blog';
// SELECTs
static function getAll()
{
$query = 'SELECT * FROM '.self::$table.' WHERE active = 1 ORDER BY ord';
return R::getRow($query);
}
}
But when I put it in the server (PHP 5.5.27) it gives me an error on the static var because I'm concatenating the contant,
Parse error: syntax error, unexpected '.', expecting ',' or ';' in /models/Blog.php on line 3
Can anyone tell me which is the configuration that it's going wrong here?
Thanks,