Welcome Guest, Not a member yet? Register   Sign In
Models, Controllers N Bears OH mY!!
#11

[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
#12

[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 Wink I had to read this stuff many times to even get the flow. Anyway - I mean all this in good fun. Take care.
#13

[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




Theme © iAndrew 2016 - Forum software by © MyBB