+ $formData = $this->_helper->SyjPostData->getPostData('Syj_Form_Geom');
+ $path = new Syj_Model_Path();
+
+ $user = $this->_helper->SyjSession->user();
+ if (!$user and !$formData["geom_accept"]) {
+ throw new Syj_Exception_Request();
+ }
+ $path->creator = $user;
+ $path->creatorIp = trim(end(split(',', $this->getRequest()->getClientIp(true))));
+
+ $this->save($path, $formData);
+ $data = array('redirect' => "idx/" . (string)$path->id);
+ $this->_helper->SyjApi->setCode(201)->setBodyJson($data);