Page.php 200 B

12345678910
  1. <?php
  2. class Page {
  3. private $view;
  4. public function __construct($viewName) {
  5. $this->view = $viewName . "View.inc";
  6. }
  7. public function render() {
  8. include(ROOT_PATH . "views/" . $this->view);
  9. }
  10. }