Пример #1
0
 /**
  * get real path
  *
  * @param string $path
  * @return string
  */
 public function getRealPath($path)
 {
     $paths = $this->_helper->getPath($path);
     if ($paths === false) {
         $this->returnError("Invalid Path [{$path}]");
     }
     return $paths['real'];
 }
Пример #2
0
 protected function _initFileHelper()
 {
     $this->_fileHelper = new HCMS_File_Helper($this->_application, $this->getInvokeArg('bootstrap')->getOption('fileserver'));
     Zend_Registry::set('fileHelper', $this->_fileHelper);
     $this->_filePaths = $this->_fileHelper->getPath("");
     $this->view->fileWebRoot = $this->_filePaths['web'];
 }