Welcome Guest, Not a member yet? Register   Sign In
When to use Models ? (just need a little briefing)
#1

[eluser]sikko[/eluser]
Hi all,

I've watched the two video tutorials but they don't explain when should we use models...
In the blog application for instance ? why don't even we use models ? Aren't they needed ?

If you take a look at [email=http://video.derekallard.com/]this sample application[/email], you will notice that the guy uses a model with only one function:

Code:
function getSearchResults ($function_name, $description = TRUE){
//the function...
}

Why haven't he put this "getSearchResults" function in the controller ?

Thank you for your help.
//CI Rocks!


Messages In This Thread
When to use Models ? (just need a little briefing) - by El Forum - 01-20-2010, 03:20 PM
When to use Models ? (just need a little briefing) - by El Forum - 01-20-2010, 03:34 PM
When to use Models ? (just need a little briefing) - by El Forum - 01-20-2010, 05:17 PM
When to use Models ? (just need a little briefing) - by El Forum - 01-20-2010, 06:35 PM
When to use Models ? (just need a little briefing) - by El Forum - 01-20-2010, 07:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB