-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use Controller own constructer? #1208
Comments
Ref changed controller; |
Support questions should be asked on the forum, thanks. |
Unless this is referencing someplace in the docs that I missed changing, in which case you should mention that.... |
@lonnieezell hi, CRITICAL - 2018-09-08 18:09:22 --> Cannot call constructor own extend core controller create __construct not found replaced initController. |
If you'll look at the commit you referenced, you'll see the Controller's constructor was removed. So there's no Now - was there somewhere in the current docs you got that from, or was that old code? |
Old codes;
If you are extending the Controller core class, then be sure to extend your new class in your application controller’s constructors: }` My code extends SiteController; class SiteController extends \CodeIgniter\Controller
..... Normal Controller And Extends SiteControllers; class Site extends \App\Core\SiteController
....... Extends controllers own controllers $this->response, $this->request how access ? Have a nice day. |
not be use __construct
The text was updated successfully, but these errors were encountered: