admin - Prestashop - Fatal error: Undefined class constant 'self::TYPE_STRING' -


i developing module in prestashop 1.6, extend admincontroller class, every thing nice.but when want display form permit add new instance error message displayed :

fatal error: undefined class constant 'self::type_string' in c:\xampp\htdocs\prestashop\classes\controller\admincontroller.php on line 1418 

self::type_string constant objectmodel, not admincontroller.

i don't know why you'd want use inside admincontroller, if need to, change : objectmodel::type_string.

keyword self referes current class you're in (in admincontroller)


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -