public function save() { $showdialog = input::get('showdialog', false); $params = input::get('params'); try { shopWidgets::setParams(input::get('widgets_id'), input::get('widgets'), input::get('dialog'), input::get('params'), $this->shopId); } catch (Exception $e) { return $this->splash('error', null, $e->getMessage(), true); } if ($showdialog) { $url = url::action('topshop_ctl_shop_decorate@dialog', array('widgets' => input::get('widgets'), 'dialog' => $showdialog)); } else { $url = url::action('topshop_ctl_shop_decorate@index'); } $msg = app::get('topshop')->_('保存成功'); return $this->splash('success', $url, $msg, true); }