Welcome Guest, Not a member yet? Register   Sign In
Controller Method Name Prefix
#6

cartalot,

Thanks for the additional information. I do understand that a underscore prefix previously denoted a private method to the reader but was NOT enforced by php. However, I believe the use of this convention is old and has faded. As mentioned in my original post, php does not restrict using an underscore prefix in a function, method or class name. Per the php documentation:

A valid function name starts with a letter or underscore, followed by any number of letters, numbers, or underscores.
A valid class name starts with a letter or underscore, followed by any number of letters, numbers, or underscores.

If php does not restrict using an underscore prefix in a function, method or class name, why should CI???
Reply


Messages In This Thread
Controller Method Name Prefix - by Cannondale - 10-14-2016, 08:14 AM
RE: Controller Method Name Prefix - by albertleao - 10-14-2016, 09:19 AM
RE: Controller Method Name Prefix - by Cannondale - 10-19-2016, 11:07 AM
RE: Controller Method Name Prefix - by cartalot - 10-19-2016, 12:08 PM
RE: Controller Method Name Prefix - by Cannondale - 10-19-2016, 12:44 PM
RE: Controller Method Name Prefix - by Narf - 10-20-2016, 03:01 AM
RE: Controller Method Name Prefix - by RBX - 10-22-2016, 09:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB