/**
  * 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()));
 }
예제 #2
0
 public function notes()
 {
     $this->View->renderWithoutHeaderAndFooter('api/index', array('data' => NoteModel::getAllNotes()));
 }