/** * 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('inventory/index', array('inventory' => InventoryModel::getAllProducts())); }