Welcome Guest, Not a member yet? Register   Sign In
Entering only from route address
#7

[eluser]PhilTem[/eluser]
If you want to turn methods into private methods DO NOT add a private declaration for the method

Code:
private function hidden() {}
will not work because the method can't be called form the CI super object.
However
Code:
public function _hidden() {}
will work and this method will not be accessible via http://example.com/controller/_hidden.

You need to distinguish between private PHP methods and "private CI methods"


Messages In This Thread
Entering only from route address - by El Forum - 10-30-2012, 12:44 AM
Entering only from route address - by El Forum - 10-30-2012, 02:13 AM
Entering only from route address - by El Forum - 10-30-2012, 02:59 AM
Entering only from route address - by El Forum - 10-30-2012, 04:31 AM
Entering only from route address - by El Forum - 10-30-2012, 06:44 AM
Entering only from route address - by El Forum - 10-30-2012, 07:01 AM
Entering only from route address - by El Forum - 10-30-2012, 07:13 AM
Entering only from route address - by El Forum - 10-30-2012, 05:37 PM
Entering only from route address - by El Forum - 11-02-2012, 09:40 AM
Entering only from route address - by El Forum - 11-02-2012, 11:15 AM
Entering only from route address - by El Forum - 11-02-2012, 11:30 AM
Entering only from route address - by El Forum - 11-03-2012, 04:51 AM
Entering only from route address - by El Forum - 11-03-2012, 09:59 AM
Entering only from route address - by El Forum - 11-03-2012, 11:46 PM



Theme © iAndrew 2016 - Forum software by © MyBB