/** * This method controls what happens when you move to /note/edit(/XX) in your app. * Shows the current content of the note and an editing form. * @param $note_id int id of the note */ public function edit($material_id) { // All methods inside this controller are only accessible for admins (= users that have role type 7) Auth::checkAdminAuthentication(); $this->View->render('material/edit', array('material' => materialModel::getMaterial($material_id))); }