0

magento 2 file get content not working please help

1
  • 2
    It clearly says you are trying to access the methods directly of that class. As its an abstract class you cant directly access it. You need to extend it to use those classes. Jun 1, 2017 at 13:47

1 Answer 1

2

From the php manual:

PHP 5 introduces abstract classes and methods. Classes defined as abstract may not be instantiated, and any class that contains at least one abstract method must also be abstract. Methods defined as abstract simply declare the method's signature - they cannot define the implementation.

I think you are trying to make a controller and not an abstract controller and as such removing the abstract class keyword will solve your issue.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.