theme = $this->site->get_layout(); if(! is_file( VIEWPATH . DIR_THEME . DIRECTORY_SEPARATOR . $this->theme . DIRECTORY_SEPARATOR . "content" . DIRECTORY_SEPARATOR . $page . ".php" )) { show_404(); exit; } $this->view = "content/" . $page; } }