Created
September 24, 2014 12:01
-
-
Save jl-/0a4a32ba07d54bf53715 to your computer and use it in GitHub Desktop.
Sync from Codist...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| > 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