/** * Prepare all the variables for the controller. */ private function prepareVariables() { $modulesDir = PathService::getModulesDir(); $moduleName = MvcReg::getModuleName(); $this->_modelDir = $modulesDir . DIRECTORY_SEPARATOR . $moduleName . DIRECTORY_SEPARATOR . "models"; $this->_controllerDir = $modulesDir . DIRECTORY_SEPARATOR . $moduleName . DIRECTORY_SEPARATOR . "controllers"; $this->_viewDir = $modulesDir . DIRECTORY_SEPARATOR . $moduleName . DIRECTORY_SEPARATOR . "views"; }