D
D
deepin2019-07-25 09:45:55
PHP
deepin, 2019-07-25 09:45:55

Should the method be called if the underlying controller is not abstract?

1. There is a method (view) in the base non-abstract (for the test) controller.
2. The controller is extended by the base class.
4. An instance of the controller is created in the router, after that the controller method (action) is called, and after that the base controller method (view) is called.
Everything is working.
Is it possible to call the method of the base controller (view) from the router if the controllers are simply inherited, but the base is not abstract?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Northern Lights, 2019-07-25
@deepin

write code, it's so hard to understand

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question