Skip to content

Instantly share code, notes, and snippets.

@jl-
Created September 24, 2014 12:01
Show Gist options
  • Select an option

  • Save jl-/0a4a32ba07d54bf53715 to your computer and use it in GitHub Desktop.

Select an option

Save jl-/0a4a32ba07d54bf53715 to your computer and use it in GitHub Desktop.
Sync from Codist...
> PHP Smarty
---
```
<?php
require '../global/libs/Smarty/Smarty.class.php';
class ViewManager extends Smarty{
public function __construct(){
parent::__construct();
$this->setTemplateDir('./views/templates/');
$this->setCompileDir('./views/templates_c/');
$this->setConfigDir('./views/configs/');
$this->setCacheDir('./views/cache/');
$this->caching = 0;
//$this->caching = Smarty::CACHING_LIFETIME_CURRENT;
}
}
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment