Welcome Guest, Not a member yet? Register   Sign In
Is it okay/advisable to use input methods directly in models?
#3

[eluser]robnecciai[/eluser]
[quote author="SPeed_FANat1c" date="1287525816"]I am new to CI too, but have little experience already with it and I think it is better use function parameters.
When you use this->input->post then you can use the function for very specific task. When you use parameters, you can use the same function for severals tasks.

My 2 cents.[/quote]

I tend to agree. In fact, that's the way I've coded my models so far. I was just checking to make sure I wasn't missing something more obvious.

Thanks.


Messages In This Thread
Is it okay/advisable to use input methods directly in models? - by El Forum - 10-19-2010, 11:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB