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
Expected behavior, and steps to reproduce if appropriate
initController is supposed to be called on the event of creation of a new instance of the class.
Context
OS: Windows 10
Web server Apache 2.4.39 (Wamp)
PHP version 7.2.18
The text was updated successfully, but these errors were encountered:
aryaei2000
added
the
bug
Verified issues on the current code behavior or pull requests that will fix them
label
Nov 14, 2019
It would be very helpful if you could provide code for a minimal, reproducible example. I think that means not only the controller extending ResourceController but probably also ResourceController itself along with any parents it might have.
I just did a simple test: made the default Home controller that CI ships with extend ResourceController and everything loads as expected. I extended the initController method, and it's tried to run it as expected.
Cannot find this a bug. Sorry. Post on the forums if you're stuck to get help with your situation.
Describe the bug
When extending ResourceController in a new controller, the initController is not called as the constructor.
CodeIgniter 4 version
4.0.0-rc.2.1
Affected module(s)
CodeIgniter\RESTful\ResourceController
Expected behavior, and steps to reproduce if appropriate
initController is supposed to be called on the event of creation of a new instance of the class.
Context
The text was updated successfully, but these errors were encountered: