Subject: Autoload function and namespace problems
I am using a simple controller with a namespase of app/controllers but when I try to call for example User::find(64) I get
Fatal error app/controllers/user class could not be found. Of cource if I put a name space of app/controllers in the model users it work.
Dose anyone know how to get around the issue of the namespace of the control being added in the sp__autoload?
June 27 2010
February 28, 2014
Subject: Autoload function and namespace problems
I am using a simple controller with a namespase of app/controllers but when I try to call for example User::find(64) I get
Fatal error app/controllers/user class could not be found. Of cource if I put a name space of app/controllers in the model users it work.
Dose anyone know how to get around the issue of the namespace of the control being added in the sp__autoload?