public function __construct()
 {
     $this->_request = Application::getRequest();
     $this->_response = Application::getResponse();
     $this->view = Application::getView();
     $this->init();
 }
Example #2
0
 /**
  * コンストラクタ
  *
  * @param Application $application
  */
 public function __construct($application)
 {
     $this->controller_name = strtolower(substr(get_class($this), 0, -10));
     $this->application = $application;
     $this->request = $application->getRequest();
     $this->response = $application->getResponse();
     $this->session = $application->getSession();
     $this->db_manager = $application->getDbManager();
 }