Welcome Guest, Not a member yet? Register   Sign In
Confusion calling model functions
#12

[eluser]jedd[/eluser]
[quote author="JulianM" date="1246156898"]I'd recommend you to respect the CodeIgniter guidelines ...

...you use that model in the controller as shown here:

Code:
$this->post_model->method($param1, $param2);
[/quote]

Did you read that link I posted above to the CI User Guide - Models page?

Am I the only one that thought it was confusing to call models by a ucfirst() name, but still did it anyway, whereas everyone else didn't notice, didn't do it, and nothing bad happened to them?

How dreadfully unfair.


Fuzzy - ah, yes, sorry, round the wrong way. This probably exemplifies why an arbitrary 'this class type should be singular, this should be plural' isn't that crash hot an idea. Or at least why it wouldn't work for me.


Broxi - I have a deep and abiding hatred of using plurals in controller, model, table and column names. I can't blame this hatred on a weird uncle, but nonetheless I encourage everyone I encounter to reconsider their usage of plurals in these contexts.


Messages In This Thread
Confusion calling model functions - by El Forum - 06-27-2009, 02:13 AM
Confusion calling model functions - by El Forum - 06-27-2009, 02:29 AM
Confusion calling model functions - by El Forum - 06-27-2009, 03:23 AM
Confusion calling model functions - by El Forum - 06-27-2009, 05:12 AM
Confusion calling model functions - by El Forum - 06-27-2009, 01:09 PM
Confusion calling model functions - by El Forum - 06-27-2009, 02:15 PM
Confusion calling model functions - by El Forum - 06-27-2009, 02:40 PM
Confusion calling model functions - by El Forum - 06-27-2009, 02:48 PM
Confusion calling model functions - by El Forum - 06-27-2009, 02:52 PM
Confusion calling model functions - by El Forum - 06-27-2009, 03:06 PM
Confusion calling model functions - by El Forum - 06-27-2009, 03:41 PM
Confusion calling model functions - by El Forum - 06-27-2009, 04:07 PM
Confusion calling model functions - by El Forum - 06-27-2009, 04:58 PM
Confusion calling model functions - by El Forum - 06-27-2009, 05:23 PM
Confusion calling model functions - by El Forum - 06-27-2009, 05:33 PM



Theme © iAndrew 2016 - Forum software by © MyBB