servermgrv2 init...

This commit is contained in:
최준흠 2023-07-27 09:20:49 +09:00
parent c269b1a9a7
commit ed75d151aa
20 changed files with 14 additions and 16 deletions

View File

@ -12,8 +12,7 @@ class AdminController extends BASEController
public function initController(RequestInterface $request, ResponseInterface $response, LoggerInterface $logger)
{
parent::initController($request, $response, $logger);
$this->_className .= 'Admin';
$this->_viewPath = strtolower($this->_className);
$this->_viewPath = strtolower('Admin/');
$this->_viewDatas['layout'] = LAYOUTS['admin'];
$this->_viewDatas['title'] = "관리자페이지";
}

View File

@ -5,7 +5,6 @@ namespace App\Controllers\Admin;
use CodeIgniter\HTTP\RequestInterface;
use CodeIgniter\HTTP\ResponseInterface;
use Psr\Log\LoggerInterface;
use App\Libraries\Log\Log;
abstract class AdminHierarchyController extends AdminController
{

View File

@ -12,10 +12,10 @@ class BoardConfigController extends AdminController
public function initController(RequestInterface $request, ResponseInterface $response, LoggerInterface $logger)
{
parent::initController($request, $response, $logger);
$this->_className .= '/BoardConfig';
$this->_className .= 'BoardConfig';
$this->_model = new BoardConfigModel();
helper($this->_className);
$this->_viewPath = strtolower($this->_className);
$this->_viewPath .= strtolower($this->_className);
$this->_viewDatas['title'] = lang($this->_className . '.title');
$this->_viewDatas['className'] = $this->_className;
}

View File

@ -15,10 +15,10 @@ class BoardController extends AdminHierarchyController
public function initController(RequestInterface $request, ResponseInterface $response, LoggerInterface $logger)
{
parent::initController($request, $response, $logger);
$this->_className .= '/Board';
$this->_className .= 'Board';
$this->_model = new BoardModel();
helper($this->_className);
$this->_viewPath = strtolower($this->_className);
$this->_viewPath .= strtolower($this->_className);
$this->_viewDatas['title'] = lang($this->_className . '.title');
$this->_viewDatas['className'] = $this->_className;
}

View File

@ -15,10 +15,10 @@ class HPILOController extends \App\Controllers\Admin\AdminController
public function initController(RequestInterface $request, ResponseInterface $response, LoggerInterface $logger)
{
parent::initController($request, $response, $logger);
$this->_className .= '/HPILO';
$this->_className .= 'HPILO';
$this->_model = new HPILOModel();
helper($this->_className);
$this->_viewPath = strtolower($this->_className);
$this->_viewPath .= strtolower($this->_className);
$this->_viewDatas['title'] = lang($this->_className . '.title');
$this->_viewDatas['className'] = $this->_className;
}

View File

@ -12,10 +12,10 @@ class UserController extends AdminController
public function initController(RequestInterface $request, ResponseInterface $response, LoggerInterface $logger)
{
parent::initController($request, $response, $logger);
$this->_className .= '/User';
$this->_className .= 'User';
$this->_model = new UserModel();
helper($this->_className);
$this->_viewPath = strtolower($this->_className);
$this->_viewPath .= strtolower($this->_className);
$this->_viewDatas['title'] = lang($this->_className . '.title');
$this->_viewDatas['className'] = $this->_className;
}

View File

@ -12,10 +12,10 @@ class UserSNSController extends AdminController
public function initController(RequestInterface $request, ResponseInterface $response, LoggerInterface $logger)
{
parent::initController($request, $response, $logger);
$this->_className .= '/UserSNS';
$this->_className .= 'UserSNS';
$this->_model = new UserSNSModel();
helper($this->_className);
$this->_viewPath = strtolower($this->_className);
$this->_viewPath .= strtolower($this->_className);
$this->_viewDatas['title'] = lang($this->_className . '.title');
$this->_viewDatas['className'] = $this->_className;
}

View File

@ -51,8 +51,8 @@ abstract class BaseController extends Controller
private $_userModel = null;
private $_user_uids = array();
protected $_model = null;
protected $_className = '';
protected $_viewPath = '';
protected $_className = '/';
protected $_viewPath = '/';
protected $_viewDatas = array();
protected $_session = null;
public function initController(RequestInterface $request, ResponseInterface $response, LoggerInterface $logger)

View File

@ -12,7 +12,7 @@ class FrontController extends BASEController
public function initController(RequestInterface $request, ResponseInterface $response, LoggerInterface $logger)
{
parent::initController($request, $response, $logger);
$this->_viewPath = $this->_viewPath . '/front';
$this->_viewPath = strtolower('Front/');
$this->_viewDatas['layout'] = LAYOUTS['front'];
$this->_viewDatas['title'] = "사용자페이지";
}