Welcome Guest, Not a member yet? Register   Sign In
Best methods to control helper functions
#2

[eluser]yohanip[/eluser]
Hi, to make the controller private and could not be accessed by the public you need to add an extra "_" on your functions declaration such as this :
Code:
<?php
class SomeClass extends Controller
{
function SomeClass()
{
}
//this should be private
function _a_private_function($a = 100, $b = 100)
{
//.....declarations
}
}


Messages In This Thread
Best methods to control helper functions - by El Forum - 08-21-2010, 12:28 PM
Best methods to control helper functions - by El Forum - 08-21-2010, 12:55 PM
Best methods to control helper functions - by El Forum - 08-22-2010, 11:52 PM



Theme © iAndrew 2016 - Forum software by © MyBB