'Novaconium Message Page', 'pageclass' => 'novaconium' ]); if ( empty($session->get('username'))) { $redirect->url('/novaconium/login'); $messages->error('You are not loggedin'); makeitso(); } $messageid = $router->parameters['id']; $query = "SELECT id, name, email, message, created, unread FROM contactForm WHERE id = '$messageid'"; $data['themessage'] = $db->getRow($query); view('@novacore/editmessage', $data);