roja45 Posted February 24, 2016 Share Posted February 24, 2016 Hi All, I am getting an error with the validator that my front controller class is not in camel case, ok, I camel case it, validator is happy. Problem I see is that in the Dispatcher (and unlike the back office controller loaders) uses the same $module_name variable for both the location on the file system and the class name: include_once(_PS_MODULE_DIR_.$module_name.'/controllers/front/'.$this->controller.'.php'); $controller_class = $module_name.$this->controller.'ModuleFrontController'; Which means if you camel case the class name, as per the validator requirements, you would need to camel case the module directory name, which I'm not going to do. So I make a module that passes the validator that then can't be used in the system it's validating for. That seems counter-productive. Am I missing something with the way I'm creating my front controller? I could ignore the error, but that single red error really messes with my OCD... Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now