_session = \Config\Services::session(); $this->_viewPath = 'ecommerce/'; $this->_viewDatas['control'] = 'front'; $this->_viewDatas['layout'] = LAYOUTS['front']; } final protected function getUserModel() { return $this->_userModel = $this->_userModel ?: new UserModel(); } final protected function getOrderModel() { return $this->_orderModel = $this->_orderModel ?: new OrderModel(); } final protected function getProductModel() { return $this->_productModel = $this->_productModel ?: new ProductModel(); } }