public function __construct($strViewParam = 'view', $strRouteSeparator = '/', $strControllerDir = 'controllers', $strCacheDir = false) { $this->_view = new \Xily\Bean('html'); $this->viewParam = $strViewParam; $this->routeSeparator = $strRouteSeparator; $this->controllerDir = xilyBase::fileFormatDir($strControllerDir); $this->cacheDir = xilyBase::fileFormatDir($strCacheDir); }
public function getJSON($strCachePath = false) { if ($strCachePath) { $strCachePath = xilyBase::fileFormatDir($strCachePath); if (file_exists($strCachePath . $this->strCurrent . '.json')) { return file_get_contents($strCachePath . $this->strCurrent . '.json'); } } return json_encode($this->arrData); }