public function page($page) { //set the page $this->layout->page = $page; //set the layout content and title $this->layout->content = view($page); return $this->layout; }