public function actionIndex() { // Set return state for pages (last search function) $this->session->delete('page.lastSearch'); return $this->template->partial('content', 'pages/index', ['pages' => Page::findAll('SELECT * FROM nerd_pages')]); }