Welcome Guest, Not a member yet? Register   Sign In
CONTROLLERS, single method or different methods for different actions?
#9

(This post was last modified: 05-11-2016, 02:32 PM by cartalot.)

(05-10-2016, 03:28 PM)Narf Wrote: But we're in the PHP7 era now and "private" has a specific meaning. Also, making controller methods really private by using the keyword works just fine - you don't need to prefix those with an underscore and they still won't be routable.

(hangs head in shame) ok not really, but - yeah i thought the underscore prefix for the method name was still a 'convention' for helping to identify private methods in php - and it was including zend in early 2015 - but apparently in late 2015 it was removed in zend and the consensus is now not to use it.
Reply


Messages In This Thread
RE: CONTROLLERS, single method or different methods for different actions? - by cartalot - 05-11-2016, 02:31 PM



Theme © iAndrew 2016 - Forum software by © MyBB