-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New classes autoloader #2345
Comments
you don't think for one second I tried doing: new ModelCatalogCategory($this->registry); its ugly |
may be, but it's more useful for developers... and the php code becomes shorter. |
no it does not dip shit! if you actually put a real example down it would be $this->model_catalog_category = new ModelCatalogCategory($this->registry); vs $this->load->model('catalog/category'); autoloading from my own experience should only be used for loading library classes which opencart does. |
yes, You are right about sintaxis but, in the IDE, for example ZendStudio, or any other, after that You can Ctrl + mouse click on the method or class to go to method/class declaration... with that you can't do like this... don't be so angry :) it's your system. |
ZendStudio is one of the worst IDE's out there. the company has not produced one successful product. all they have done is jumped on the back of php and destroyed the language. |
I don't need your amendments! your suggestion is not actually helpful and unneeded. its just the way you would prefer to do something. no bugs or issue to be reported. this is actually the way that is suggested if you follow ZF way of doing things. $this->model_catalog_category = new \Model\Catalog\Category($this->registry); ugly ugly code. after 7 years they still have not got a decent autoloading system in place. |
Ok, Daniel :) thanks for the answers |
About ugly code... U should stop coding like this: for(...){ "SELECT ...." } and stop coding like this: SELECT ..... date_time_field > NOW() I think You know, that all of this slowdown work of the web site. |
I like your system (OpenCart). It's simple for work, but same pice of code is ugly |
The text was updated successfully, but these errors were encountered: