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

[eluser]xwero[/eluser]
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.


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



Theme © iAndrew 2016 - Forum software by © MyBB