public function __construct() { if (!(AK_DEV_MODE && AkRequest::isLocal())) { throw new ForbiddenActionException('You can only access the Akelos Panel from localhost and when running development environment.'); } }
public function __construct() { if (!AkRequest::isLocal()) { $this->beforeFilter(array('authenticate' => array('except' => array('index')))); } }