public function __construct($sPath, $sRegex) { $sPath = realpath(dirname($sPath)); if (basename($sPath) == 'config') { $sPath = substr($sPath, 0, -7); } $sPath .= DIRECTORY_SEPARATOR; $this->setTemplatePath(VSC_RES_PATH . 'templates' . DIRECTORY_SEPARATOR); parent::__construct($sPath, $sRegex); }
public function __construct($sPath = null, $sRegex = null) { if (is_null($sPath)) { $sPath = __FILE__; } if (is_null($sRegex)) { $sRegex = '.*'; } parent::__construct($sPath, $sRegex); }
public function __construct($sPath = null, $sRegex = null) { if (is_null($sPath)) { $sPath = __FILE__; } if (is_null($sRegex)) { $sRegex = '.*'; } parent::addHeader('Accept', 'application/json'); parent::__construct($sPath, $sRegex); }