Welcome Guest, Not a member yet? Register   Sign In
CI4 Function / Class Names
#3

It was originally called view, but was changed for 2 reasons. The primary reason was to match up in style with the load_helper function. Second, it really depends on how you look at it. The function itself really just loads the view so that it can be used elsewhere. The echo command is the one displaying it, so it still makes sense with load_view as the name. It could just as easily be stored in a variable, in which case, 'view' doesn't make as much sense.

Once the repo is an official BCIT repo, then I'm sure everyone will have their say on naming of functions, but I wasn't planning on putting them all up for a vote. Smile
Reply


Messages In This Thread
CI4 Function / Class Names - by albertleao - 04-11-2016, 07:07 PM
RE: CI4 Function / Class Names - by Avenirer - 04-12-2016, 03:02 AM
RE: CI4 Function / Class Names - by kilishan - 04-12-2016, 06:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB