You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 9, 2019. It is now read-only.
I think Controller::run() should be removed. It's not used anywhere in the framework.
What steps will reproduce the problem?
Try to override run().
What is the expected result?
Application resolves request
Application creates controller
Application calls ->run() on controller
Controller calls ->runAction() for the specified action.
What do you get instead?
Application resolves request
Application creates controller
Application calls ->runAction() on controller
Additional info
To me it seems this should not be part of the core framework; it provides a way to execute other routes from a controller. Doing that does not feel like a good practice that should be stimulated.
If it is really needed one should use app->runAction instead and re-resolve the whole route instead of this random shortcut.
Q
A
Yii version
dev-master
PHP version
N/A
Operating system
N/A
The text was updated successfully, but these errors were encountered:
I think
Controller::run()
should be removed. It's not used anywhere in the framework.What steps will reproduce the problem?
Try to override
run()
.What is the expected result?
->run()
on controller->runAction()
for the specified action.What do you get instead?
->runAction()
on controllerAdditional info
To me it seems this should not be part of the core framework; it provides a way to execute other routes from a controller. Doing that does not feel like a good practice that should be stimulated.
If it is really needed one should use
app->runAction
instead and re-resolve the whole route instead of this random shortcut.The text was updated successfully, but these errors were encountered: