Welcome Guest, Not a member yet? Register   Sign In
Need help with a model
#7

[eluser]John Fuller[/eluser]
[quote author="wiredesignz" date="1201437958"]
Quote: There is nothing the models can do that the controller cannot do.
You may as well go back to procedural coding.[/quote]

I think you missed the mark of my explanation. He said he needs to use it but clearly he is misunderstanding their usage. I believe that with CI you should at least have the controller to view relationship down strong before attempting to mess with models and I don't think dude is there yet.

Again, models were never a core feature in CI. Originally models weren't even a thought in the original code base of CI. Rick bolted models in after the community made the request. You would have a hard time getting by in CI without using Controllers, but the same is not true of Models.

So again, I was addressing the idea of need. First learn how to properly use the controller and view relationship. Learn how to use CI well, read through the documentation. Tackle models when you feel you have everything else down well.

Actually, some PHP noobs would probably be better off with procedural programming without a framework than going straight into a framework and creating a lot of bad habits. The framework abstracts so much that there is a lot of learning that may be missed. Just like Rails enables a developer to do a lot with basic web apps without really learning Ruby.

Just my 2 cents. I use models extensively. I suppose he can write his apps however he wants though.


Messages In This Thread
Need help with a model - by El Forum - 01-26-2008, 12:27 PM
Need help with a model - by El Forum - 01-26-2008, 12:50 PM
Need help with a model - by El Forum - 01-26-2008, 01:43 PM
Need help with a model - by El Forum - 01-26-2008, 03:24 PM
Need help with a model - by El Forum - 01-26-2008, 11:48 PM
Need help with a model - by El Forum - 01-27-2008, 12:45 AM
Need help with a model - by El Forum - 01-27-2008, 01:16 AM
Need help with a model - by El Forum - 01-27-2008, 01:59 AM
Need help with a model - by El Forum - 01-27-2008, 02:20 AM
Need help with a model - by El Forum - 01-27-2008, 03:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB