/** * This method controls what happens when you move to /note/editSave in your app. * Edits a note (performs the editing after form submit). * POST request. */ public function editSave() { InventoryModel::updateProduct(Request::post('product_id'), Request::post('product_name'), Request::post('product_set'), Request::post('product_condition'), Request::post('product_price'), Request::post('product_qty'), Request::post('product_foil')); Redirect::to('inventory'); }