Call function from another function

#4
[eluser]jamesf[/eluser]
No problem,

Also if the method is just controller logic then put an underscore before the function name so that it can't be accessed from a URL e.g. http://website/controller/function_b

Code:
$this->_function_b();

This "http://website/controller/function_b" will no longer work.


Messages In This Thread
Call function from another function - by El Forum - 04-01-2008, 07:33 AM
Call function from another function - by El Forum - 04-01-2008, 07:51 AM
Call function from another function - by El Forum - 04-01-2008, 07:53 AM
Call function from another function - by El Forum - 04-01-2008, 07:59 AM
Call function from another function - by El Forum - 04-03-2008, 02:19 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.