Brak opisu

View.php 329B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * The View class
  4. */
  5. class LtView
  6. {
  7. public $layoutDir;
  8. public $templateDir;
  9. public $layout;
  10. public $template;
  11. public function render()
  12. {
  13. if (!empty($this->layout))
  14. {
  15. include($this->layoutDir . $this->layout . '.php');
  16. }
  17. else
  18. {
  19. include($this->templateDir . $this->template . '.php');
  20. }
  21. }
  22. }