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

(This post was last modified: 04-11-2016, 07:08 PM by albertleao.)

I understand that CI4 is under heavy development and a lot is expected to change, but I was wondering whether or not there is going to be public discussion relating to class and function names in the core.

For example, currently (As of 4/11/2016), the function to generate and return a view is:
PHP Code:
load_view('path_to_view'); 


So if you wanted to output a view it would be:
PHP Code:
echo load_view('path_to_view'


But in essence, you're not echoing the loading of a view, you're echoing the view itself so the more correct term would be:
PHP Code:
echo view('path_to_view'



I know this might sound like a small change that won't affect many people at all but I was wondering if there was going to be any public input on things like this.
Codeigniter is simply one of the tools you need to learn to be a successful developer. Always add more tools to your coding arsenal!
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