Clarification about MY_Controller and relative inheritances |
(04-17-2017, 04:34 PM)marksman Wrote: @Dave friend, have you tried to var_dump in Backend_Controller's constructor? I'm afraid its not loaded. or try to instantiate it in your class Dashboard which is basically loaded by magic router. I think you're reading it wrong. Look at my code again.
The inheritance chain will instantiate Backend. I know "Backend" was created because the object "river_m" is successfully used in "Welcome" to return data from the db. In my example I did not define a Frontend class but if I did it would extend MY_Controller. |
Welcome Guest, Not a member yet? Register Sign In |