/** * 商品をカートに追加 * route --> /item/add/:itemid */ public function addAction() { $this->_log->debug(__CLASS__ . ":" . __FUNCTION__ . " called:(" . __LINE__ . ")"); $params = $this->getPostList(); if (count($params) == 0) { $this->_log->debug("パラメータがPOSTされていません"); return; } $params['customerID'] = Auth::getUserID(); $mapper = new Item(); $mapper->addItemInCart($params); $this->redirect('/item'); return; }