shoppingmallv2 init..
This commit is contained in:
parent
be3b33fbbe
commit
a73e9c178f
@ -46,10 +46,6 @@ class BoardController extends AdminController
|
|||||||
protected function getFieldFormData(string $field, $entity = null): array
|
protected function getFieldFormData(string $field, $entity = null): array
|
||||||
{
|
{
|
||||||
switch ($field) {
|
switch ($field) {
|
||||||
case 'passwd':
|
|
||||||
$this->_viewDatas['fieldDatas'][$field] = $this->request->getVar($field);
|
|
||||||
$this->_viewDatas['fieldDatas']['confirmpassword'] = $this->request->getVar('confirmpassword');
|
|
||||||
break;
|
|
||||||
case 'board_file':
|
case 'board_file':
|
||||||
$file = $this->upload_file_procedure($field);
|
$file = $this->upload_file_procedure($field);
|
||||||
if (!is_null($file)) {
|
if (!is_null($file)) {
|
||||||
|
|||||||
@ -15,26 +15,6 @@ class UserController extends AdminController
|
|||||||
parent::initController($request, $response, $logger);
|
parent::initController($request, $response, $logger);
|
||||||
$this->_viewPath .= strtolower($this->_model->getClassName());
|
$this->_viewPath .= strtolower($this->_model->getClassName());
|
||||||
}
|
}
|
||||||
|
|
||||||
//Field별 Form Datas 처리용
|
|
||||||
protected function getFieldFormData(string $field, $entity = null): array
|
|
||||||
{
|
|
||||||
switch ($field) {
|
|
||||||
case 'passwd':
|
|
||||||
$passwd = $this->request->getVar($field) ?: false;
|
|
||||||
$confirmpassword = $this->request->getVar('confirmpassword') ?: false;
|
|
||||||
if ($passwd && $confirmpassword) {
|
|
||||||
$this->_viewDatas['fieldDatas'][$field] = $passwd;
|
|
||||||
$this->_viewDatas['fieldDatas']['confirmpassword'] = $confirmpassword;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
return parent::getFieldFormData($field, $entity);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
return $this->_viewDatas['fieldDatas'];
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getFields(string $action = ""): array
|
public function getFields(string $action = ""): array
|
||||||
{
|
{
|
||||||
$fields = ["id", "passwd", 'name', "email", "role", "status"];
|
$fields = ["id", "passwd", 'name', "email", "role", "status"];
|
||||||
|
|||||||
@ -87,7 +87,10 @@ abstract class BaseController extends Controller
|
|||||||
{
|
{
|
||||||
switch ($field) {
|
switch ($field) {
|
||||||
default:
|
default:
|
||||||
$this->_viewDatas['fieldDatas'][$field] = $this->request->getVar($field);
|
$value = $this->request->getVar($field);
|
||||||
|
if (!is_null($value)) {
|
||||||
|
$this->_viewDatas['fieldDatas'][$field] = $value;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return $this->_viewDatas['fieldDatas'];
|
return $this->_viewDatas['fieldDatas'];
|
||||||
|
|||||||
@ -39,21 +39,6 @@ class BoardController extends FrontController
|
|||||||
{
|
{
|
||||||
return parent::getFieldBatchFilters();
|
return parent::getFieldBatchFilters();
|
||||||
}
|
}
|
||||||
//Field별 Form Datas 처리용
|
|
||||||
protected function getFieldFormData(string $field, $entity = null): array
|
|
||||||
{
|
|
||||||
switch ($field) {
|
|
||||||
case 'passwd':
|
|
||||||
$this->_viewDatas['fieldDatas'][$field] = $this->request->getVar($field);
|
|
||||||
$this->_viewDatas['fieldDatas']['confirmpassword'] = $this->request->getVar('confirmpassword');
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
return parent::getFieldFormData($field, $entity);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
return $this->_viewDatas['fieldDatas'];
|
|
||||||
}
|
|
||||||
|
|
||||||
//Insert관련
|
//Insert관련
|
||||||
protected function insert_form_process()
|
protected function insert_form_process()
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user