/** * This method controls what happens when you move to /note/index in your app. * Gets all notes (of the user). */ public function index() { $this->View->render('note/index', array('notes' => NoteModel::getAllNotes())); }
public function notes() { $this->View->renderWithoutHeaderAndFooter('api/index', array('data' => NoteModel::getAllNotes())); }