Advertisement
darryljf

boot.include.php

Mar 23rd, 2020
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.57 KB | None | 0 0
  1. <?php
  2. session_start();
  3. // the require_once statement is identical to require except php will check if the file has already,
  4.   // been included, and if so, not include (require) it again
  5. require_once(__DIR__.'/../vendor/smarty/smarty/libs/Smarty.class.php'); // include Smarty
  6.  
  7.  
  8. //Setup Smarty
  9. $smarty = new Smarty;
  10. $smarty->setTemplateDir(__DIR__.'/../views')
  11.   ->setPluginsDir(array(__DIR__.'/../smarty/plugins'))
  12.   ->setCompileDir(__DIR__.'/../smarty/templates_c')
  13.   ->setCacheDir(__DIR__.'/../smarty/cache')
  14.   ->setConfigDir(__DIR__.'/../smarty/configs')
  15.  
  16.  
  17.  
  18.  ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement