/** * 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($product_id) { $this->View->render('inventory/edit', array('product' => InventoryModel::getProduct($product_id))); }