Sin descripción
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.

View.php 329B

1234567891011121314151617181920212223242526
  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. }