src/wcmf/lib/presentation/view/impl/SmartyView.php
public function setCacheDir($cacheDir) {
    $this->view->setCompileDir(WCMF_BASE.$cacheDir.'templates_c/');
    $this->view->setCacheDir(WCMF_BASE.$cacheDir.'cache/');

    $fileUtil = new FileUtil();
    $fileUtil->mkdirRec($this->view->getCompileDir());
    $fileUtil->mkdirRec($this->view->getCacheDir());
  }
public function setCacheDir($cacheDir) {
    $this->view->setCompileDir(WCMF_BASE.$cacheDir.'templates_c/');
    $this->view->setCacheDir(WCMF_BASE.$cacheDir.'cache/');

    $fileUtil = new FileUtil();
    $fileUtil->mkdirRec($this->view->getCompileDir());
    $fileUtil->mkdirRec($this->view->getCacheDir());
  }
public function setCacheDir ( $ cacheDir ) { $ this -> view -> setCompileDir ( WCMF_BASE . $ cacheDir . 'templates_c/' ) ; $ this -> view -> setCacheDir ( WCMF_BASE . $ cacheDir . 'cache/' ) ; $ fileUtil = new FileUtil ( ) ; $ fileUtil -> mkdirRec ( $ this -> view -> getCompileDir ( ) ) ; $ fileUtil -> mkdirRec ( $ this -> view -> getCacheDir ( ) ) ; }
Set the caching directory
If not existing, the directory will be created relative to WCMF_BASE.
@param $cacheDir String
Set the caching directory If not existing the directory will be created relative to WCMF_BASE .