Call function from another function

#2
[eluser]jamesf[/eluser]
If the second function is an action with its own view you could redirect to that action
Code:
redirect('controller/functionb');

Or if the function is just some controller logic you can call the method using:

Code:
$this->function_b();


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.