Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- // the require_once statement is identical to require except php will check if the file has already,
- // been included, and if so, not include (require) it again
- require_once(__DIR__.'/../vendor/smarty/smarty/libs/Smarty.class.php'); // include Smarty
- //Setup Smarty
- $smarty = new Smarty;
- $smarty->setTemplateDir(__DIR__.'/../views')
- ->setPluginsDir(array(__DIR__.'/../smarty/plugins'))
- ->setCompileDir(__DIR__.'/../smarty/templates_c')
- ->setCacheDir(__DIR__.'/../smarty/cache')
- ->setConfigDir(__DIR__.'/../smarty/configs')
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement