zelakioui Posted February 8, 2016 Share Posted February 8, 2016 I am developing a module in prestashop 1.6. i extend AdminController class, everything is nice.but when i want to display the form that permit to add new instance an error message is displayed : Fatal error: Undefined class constant 'self::TYPE_STRING' in C:\xampp\htdocs\prestashop\classes\controller\AdminController.php on line 1418 Link to comment Share on other sites More sharing options...
tuk66 Posted February 8, 2016 Share Posted February 8, 2016 TYPE_STRING is a constant defined in the ObjectModelCore class.You can use self::TYPE_STRING only in a module. Link to comment Share on other sites More sharing options...
zelakioui Posted February 9, 2016 Author Share Posted February 9, 2016 I use it just in my model, but i declare my model in adminController by this line $this->className. 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