Models, Controllers N Bears OH mY!! |
[eluser]smatakajr[/eluser]
[SOLVED] Ok in the mist of this all.. what i learned and failed to acknowledge was that you should only load models from the controllers MY orignal thought was per performance as in WHY should i load a model if im not going to need it in the controller and i should load the needed models in the models them self.. WRONG... You should only load models from your controllers your other models will inherit the objects. So when i removed all my additional model calls from inside the models and placed those load statments in the controllers i can now do as planed to without worry if the object exists I hope this helps someone out there who had the same thoughs coming from a regular PHP environment where you would include what was needed when its needed with no problems I dont know whats up with the BLANK page deal... that needs to be fixed Thanks Rick
[eluser]pmoroom[/eluser]
[quote author="smatakajr" date="1250800969"][SOLVED] Ok in the mist of this all.. what i learned and failed to acknowledge was that you should only load models from the controllers MY orignal thought was per performance as in WHY should i load a model if im not going to need it in the controller and i should load the needed models in the models them self.. WRONG... You should only load models from your controllers your other models will inherit the objects. So when i removed all my additional model calls from inside the models and placed those load statments in the controllers i can now do as planed to without worry if the object exists I hope this helps someone out there who had the same thoughs coming from a regular PHP environment where you would include what was needed when its needed with no problems I dont know whats up with the BLANK page deal... that needs to be fixed Thanks Rick[/quote] Hey I'm glad you got most of it figured out. I was following along to see how it worked out. I mean no disrespect, but I would love to sit and chat with you to get an understanding of how your mind works I had to read this stuff many times to even get the flow. Anyway - I mean all this in good fun. Take care.
[eluser]smatakajr[/eluser]
Actually It was solved to this point and then it went further here and was solved even deeper! http://ellislab.com/forums/viewthread/126856/ Sure thing dude just PM me and we can hop on chat or somthing Rick |
Welcome Guest, Not a member yet? Register Sign In |