shoppingmallv2 init...
This commit is contained in:
parent
086400f04b
commit
a7f020defd
@ -80,6 +80,7 @@ class ProductController extends AdminController
|
|||||||
//Insert관련
|
//Insert관련
|
||||||
protected function insert_validate()
|
protected function insert_validate()
|
||||||
{
|
{
|
||||||
|
//Upload된 파일 검증(photo)때문에 먼처 체크
|
||||||
$this->_validation->setRules($this->_viewDatas['fieldRules']);
|
$this->_validation->setRules($this->_viewDatas['fieldRules']);
|
||||||
if (!$this->_validation->withRequest($this->request)->run()) {
|
if (!$this->_validation->withRequest($this->request)->run()) {
|
||||||
throw new \Exception("{$this->_viewDatas['title']}의 검증 오류발생\n" . implode("\n", $this->_validation->getErrors()));
|
throw new \Exception("{$this->_viewDatas['title']}의 검증 오류발생\n" . implode("\n", $this->_validation->getErrors()));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user