<?php class Page { private $view; public function __construct($viewName) { $this->view = $viewName . "View.inc"; } public function render() { include(ROOT_PATH . "views/" . $this->view); } }