elakioui February 2016

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

I am developing a module in prestashop 1.6, i extend AdminController class, every thing 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

Answers


gskema February 2016

self::TYPE_STRING is a constant from ObjectModel, not AdminController.

I don't know why you'd want use it inside AdminController, but if really need to, change it to : ObjectModel::TYPE_STRING.

Keyword self referes to the current class you're in (in this it is AdminController)

Post Status

Asked in February 2016
Viewed 1,383 times
Voted 11
Answered 1 times

Search




Leave an answer