You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Templates.php 950B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. namespace SCF\Core;
  3. use Smarty;
  4. use AltoRouter;
  5. class Templates extends Smarty
  6. {
  7. /**
  8. * @var AltoRouter
  9. */
  10. private $_router;
  11. /**
  12. * @var System
  13. */
  14. private $_settings;
  15. /**
  16. * Templates constructor.
  17. * @param System $settings
  18. * @param AltoRouter $router
  19. */
  20. public function __construct(System $settings, AltoRouter $router)
  21. {
  22. parent::__construct();
  23. $this->_settings = $settings;
  24. $this->_router = $router;
  25. $this->setTemplateDir(ROOT . DS . APP . '/templates/sternenkindsaga/');
  26. $this->setCompileDir(ROOT . DS . APP . '/Caches/templates_c/');
  27. $this->setConfigDir(ROOT . DS . APP . '/Caches/configs/');
  28. $this->setCacheDir(ROOT . DS . APP . '/Caches/cache/');
  29. $this->assign('router', $this->_router);
  30. $this->assign('path', ROOT . DS . APP);
  31. $this->assign('settings', $this->_settings);
  32. }
  33. }