Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] My_Controller ?
#8

[eluser]CroNiX[/eluser]
You still didn't do it right because you didn't follow the guide exactly, which is important.

Its called MY_Controller, not MY_Primary, and it gets put in /application/core/MY_Controller.php

Also, you don't call it directly. It is automatically loaded when you call a controller. Its just a way to add methods that will be available to all controllers, that extend MY_Controller.

Then, for your own controllers, they extend MY_Controller, instead of CI_Controller.

If you follow the guide exactly, it will work. If you alter it, it won't.


Messages In This Thread
[SOLVED] My_Controller ? - by El Forum - 09-14-2012, 05:56 PM
[SOLVED] My_Controller ? - by El Forum - 09-14-2012, 06:02 PM
[SOLVED] My_Controller ? - by El Forum - 09-14-2012, 06:06 PM
[SOLVED] My_Controller ? - by El Forum - 09-14-2012, 07:02 PM
[SOLVED] My_Controller ? - by El Forum - 09-14-2012, 07:18 PM
[SOLVED] My_Controller ? - by El Forum - 09-14-2012, 07:36 PM
[SOLVED] My_Controller ? - by El Forum - 09-14-2012, 10:58 PM
[SOLVED] My_Controller ? - by El Forum - 09-15-2012, 11:55 AM
[SOLVED] My_Controller ? - by El Forum - 09-15-2012, 11:57 AM
[SOLVED] My_Controller ? - by El Forum - 09-15-2012, 12:03 PM
[SOLVED] My_Controller ? - by El Forum - 09-15-2012, 04:04 PM



Theme © iAndrew 2016 - Forum software by © MyBB