Welcome Guest, Not a member yet? Register   Sign In
AnyCase ModelNames ( Ever wanted to capitalize your models however you wished? )
#3

[eluser]Unknown[/eluser]
[quote author="xwero" date="1216314875"]I haven't given it much thought because i like the recommended underscore between words rule but for people who follow the camelcase rule it is a limiting factor which isn't necessary. I would change the code slightly different
Code:
if ( ! file_exists(APPPATH.'models/'.$path.strtolower($model).EXT))

require_once(APPPATH.'models/'.$path.strtolower($model).EXT);
The $model variable only needs to be manipulated in those two cases so why would you create a variable only to be used in those two lines.[/quote]

Aha, it figures I would still be doing something silly even with such a little edit.
I like your style better as well :-)


Messages In This Thread
AnyCase ModelNames ( Ever wanted to capitalize your models however you wished? ) - by El Forum - 07-17-2008, 06:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB