servermgrv2 init...
This commit is contained in:
parent
c269b1a9a7
commit
ed75d151aa
@ -12,8 +12,7 @@ class AdminController extends BASEController
|
|||||||
public function initController(RequestInterface $request, ResponseInterface $response, LoggerInterface $logger)
|
public function initController(RequestInterface $request, ResponseInterface $response, LoggerInterface $logger)
|
||||||
{
|
{
|
||||||
parent::initController($request, $response, $logger);
|
parent::initController($request, $response, $logger);
|
||||||
$this->_className .= 'Admin';
|
$this->_viewPath = strtolower('Admin/');
|
||||||
$this->_viewPath = strtolower($this->_className);
|
|
||||||
$this->_viewDatas['layout'] = LAYOUTS['admin'];
|
$this->_viewDatas['layout'] = LAYOUTS['admin'];
|
||||||
$this->_viewDatas['title'] = "관리자페이지";
|
$this->_viewDatas['title'] = "관리자페이지";
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5,7 +5,6 @@ namespace App\Controllers\Admin;
|
|||||||
use CodeIgniter\HTTP\RequestInterface;
|
use CodeIgniter\HTTP\RequestInterface;
|
||||||
use CodeIgniter\HTTP\ResponseInterface;
|
use CodeIgniter\HTTP\ResponseInterface;
|
||||||
use Psr\Log\LoggerInterface;
|
use Psr\Log\LoggerInterface;
|
||||||
use App\Libraries\Log\Log;
|
|
||||||
|
|
||||||
abstract class AdminHierarchyController extends AdminController
|
abstract class AdminHierarchyController extends AdminController
|
||||||
{
|
{
|
||||||
|
|||||||
@ -12,10 +12,10 @@ class BoardConfigController extends AdminController
|
|||||||
public function initController(RequestInterface $request, ResponseInterface $response, LoggerInterface $logger)
|
public function initController(RequestInterface $request, ResponseInterface $response, LoggerInterface $logger)
|
||||||
{
|
{
|
||||||
parent::initController($request, $response, $logger);
|
parent::initController($request, $response, $logger);
|
||||||
$this->_className .= '/BoardConfig';
|
$this->_className .= 'BoardConfig';
|
||||||
$this->_model = new BoardConfigModel();
|
$this->_model = new BoardConfigModel();
|
||||||
helper($this->_className);
|
helper($this->_className);
|
||||||
$this->_viewPath = strtolower($this->_className);
|
$this->_viewPath .= strtolower($this->_className);
|
||||||
$this->_viewDatas['title'] = lang($this->_className . '.title');
|
$this->_viewDatas['title'] = lang($this->_className . '.title');
|
||||||
$this->_viewDatas['className'] = $this->_className;
|
$this->_viewDatas['className'] = $this->_className;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,10 +15,10 @@ class BoardController extends AdminHierarchyController
|
|||||||
public function initController(RequestInterface $request, ResponseInterface $response, LoggerInterface $logger)
|
public function initController(RequestInterface $request, ResponseInterface $response, LoggerInterface $logger)
|
||||||
{
|
{
|
||||||
parent::initController($request, $response, $logger);
|
parent::initController($request, $response, $logger);
|
||||||
$this->_className .= '/Board';
|
$this->_className .= 'Board';
|
||||||
$this->_model = new BoardModel();
|
$this->_model = new BoardModel();
|
||||||
helper($this->_className);
|
helper($this->_className);
|
||||||
$this->_viewPath = strtolower($this->_className);
|
$this->_viewPath .= strtolower($this->_className);
|
||||||
$this->_viewDatas['title'] = lang($this->_className . '.title');
|
$this->_viewDatas['title'] = lang($this->_className . '.title');
|
||||||
$this->_viewDatas['className'] = $this->_className;
|
$this->_viewDatas['className'] = $this->_className;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,10 +15,10 @@ class HPILOController extends \App\Controllers\Admin\AdminController
|
|||||||
public function initController(RequestInterface $request, ResponseInterface $response, LoggerInterface $logger)
|
public function initController(RequestInterface $request, ResponseInterface $response, LoggerInterface $logger)
|
||||||
{
|
{
|
||||||
parent::initController($request, $response, $logger);
|
parent::initController($request, $response, $logger);
|
||||||
$this->_className .= '/HPILO';
|
$this->_className .= 'HPILO';
|
||||||
$this->_model = new HPILOModel();
|
$this->_model = new HPILOModel();
|
||||||
helper($this->_className);
|
helper($this->_className);
|
||||||
$this->_viewPath = strtolower($this->_className);
|
$this->_viewPath .= strtolower($this->_className);
|
||||||
$this->_viewDatas['title'] = lang($this->_className . '.title');
|
$this->_viewDatas['title'] = lang($this->_className . '.title');
|
||||||
$this->_viewDatas['className'] = $this->_className;
|
$this->_viewDatas['className'] = $this->_className;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -12,10 +12,10 @@ class UserController extends AdminController
|
|||||||
public function initController(RequestInterface $request, ResponseInterface $response, LoggerInterface $logger)
|
public function initController(RequestInterface $request, ResponseInterface $response, LoggerInterface $logger)
|
||||||
{
|
{
|
||||||
parent::initController($request, $response, $logger);
|
parent::initController($request, $response, $logger);
|
||||||
$this->_className .= '/User';
|
$this->_className .= 'User';
|
||||||
$this->_model = new UserModel();
|
$this->_model = new UserModel();
|
||||||
helper($this->_className);
|
helper($this->_className);
|
||||||
$this->_viewPath = strtolower($this->_className);
|
$this->_viewPath .= strtolower($this->_className);
|
||||||
$this->_viewDatas['title'] = lang($this->_className . '.title');
|
$this->_viewDatas['title'] = lang($this->_className . '.title');
|
||||||
$this->_viewDatas['className'] = $this->_className;
|
$this->_viewDatas['className'] = $this->_className;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -12,10 +12,10 @@ class UserSNSController extends AdminController
|
|||||||
public function initController(RequestInterface $request, ResponseInterface $response, LoggerInterface $logger)
|
public function initController(RequestInterface $request, ResponseInterface $response, LoggerInterface $logger)
|
||||||
{
|
{
|
||||||
parent::initController($request, $response, $logger);
|
parent::initController($request, $response, $logger);
|
||||||
$this->_className .= '/UserSNS';
|
$this->_className .= 'UserSNS';
|
||||||
$this->_model = new UserSNSModel();
|
$this->_model = new UserSNSModel();
|
||||||
helper($this->_className);
|
helper($this->_className);
|
||||||
$this->_viewPath = strtolower($this->_className);
|
$this->_viewPath .= strtolower($this->_className);
|
||||||
$this->_viewDatas['title'] = lang($this->_className . '.title');
|
$this->_viewDatas['title'] = lang($this->_className . '.title');
|
||||||
$this->_viewDatas['className'] = $this->_className;
|
$this->_viewDatas['className'] = $this->_className;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -51,8 +51,8 @@ abstract class BaseController extends Controller
|
|||||||
private $_userModel = null;
|
private $_userModel = null;
|
||||||
private $_user_uids = array();
|
private $_user_uids = array();
|
||||||
protected $_model = null;
|
protected $_model = null;
|
||||||
protected $_className = '';
|
protected $_className = '/';
|
||||||
protected $_viewPath = '';
|
protected $_viewPath = '/';
|
||||||
protected $_viewDatas = array();
|
protected $_viewDatas = array();
|
||||||
protected $_session = null;
|
protected $_session = null;
|
||||||
public function initController(RequestInterface $request, ResponseInterface $response, LoggerInterface $logger)
|
public function initController(RequestInterface $request, ResponseInterface $response, LoggerInterface $logger)
|
||||||
|
|||||||
@ -12,7 +12,7 @@ class FrontController extends BASEController
|
|||||||
public function initController(RequestInterface $request, ResponseInterface $response, LoggerInterface $logger)
|
public function initController(RequestInterface $request, ResponseInterface $response, LoggerInterface $logger)
|
||||||
{
|
{
|
||||||
parent::initController($request, $response, $logger);
|
parent::initController($request, $response, $logger);
|
||||||
$this->_viewPath = $this->_viewPath . '/front';
|
$this->_viewPath = strtolower('Front/');
|
||||||
$this->_viewDatas['layout'] = LAYOUTS['front'];
|
$this->_viewDatas['layout'] = LAYOUTS['front'];
|
||||||
$this->_viewDatas['title'] = "사용자페이지";
|
$this->_viewDatas['title'] = "사용자페이지";
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user