Welcome Guest, Not a member yet? Register   Sign In
Are Classes Dead?
#1

[eluser]matyhaty[/eluser]
Hi All

As you may have seen, Ive just posted another article, it was getting abit long, so putting this seperate issue here!

Are classes dead as such?

I was interested to define each element of CI.... For example:

View - your markup, pass it the data, nothing more
Controller - the dicator of the page. It gets everything, but no data manipulation here.
Model - The data gatherer. Contact the old mySQL and get it all

Now my confusion is where is the data transformation taking place.
Do you do it in the model, in nicely OO code (of course)
Or, where suitable, send it over to a specific class (such as 'Shop_products' or something) where it processes the gathered database information in the model and returns it back to the model in the desired form?

Also, if classes are the way forward, is there a autoloader method / or best practice.

I have done a ton of reading on CI, but this one escapes me. Apologies if I have missed something obvious, but i am new!!

Regards


Matt


Messages In This Thread
Are Classes Dead? - by El Forum - 08-05-2009, 09:24 AM
Are Classes Dead? - by El Forum - 08-11-2009, 01:47 PM



Theme © iAndrew 2016 - Forum software by © MyBB