Welcome Guest, Not a member yet? Register   Sign In
Run another controller's method
#1

[eluser]Sam Dark[/eluser]
Hello, everyone!

Is it possible to reroute application flow to another controller/action?

Code:
class A extends Controller {
  function index($id, $name){
    $param['id'] = $id;
    $param['name'] = $name;
    $this->delegate('b', 'say_it', $param);
  }
}

class B extends Controller {
  function say_it($id, $name){
    print 'Hello, '.$name.'! Your id is '.$id.'.';
  }
}


Messages In This Thread
Run another controller's method - by El Forum - 02-13-2008, 03:50 AM
Run another controller's method - by El Forum - 02-13-2008, 06:01 AM
Run another controller's method - by El Forum - 02-13-2008, 07:00 AM
Run another controller's method - by El Forum - 02-13-2008, 07:03 AM
Run another controller's method - by El Forum - 02-13-2008, 10:50 AM
Run another controller's method - by El Forum - 02-13-2008, 11:02 AM
Run another controller's method - by El Forum - 02-13-2008, 10:18 PM
Run another controller's method - by El Forum - 02-13-2008, 11:23 PM
Run another controller's method - by El Forum - 02-15-2008, 11:34 AM
Run another controller's method - by El Forum - 02-15-2008, 11:51 AM
Run another controller's method - by El Forum - 02-15-2008, 02:53 PM
Run another controller's method - by El Forum - 02-15-2008, 03:01 PM
Run another controller's method - by El Forum - 02-15-2008, 06:42 PM
Run another controller's method - by El Forum - 02-15-2008, 08:30 PM
Run another controller's method - by El Forum - 02-15-2008, 08:34 PM
Run another controller's method - by El Forum - 02-15-2008, 10:24 PM
Run another controller's method - by El Forum - 02-16-2008, 06:44 AM
Run another controller's method - by El Forum - 05-19-2009, 09:49 AM
Run another controller's method - by El Forum - 05-19-2009, 10:14 AM
Run another controller's method - by El Forum - 05-19-2009, 07:28 PM
Run another controller's method - by El Forum - 05-20-2009, 02:09 AM
Run another controller's method - by El Forum - 05-20-2009, 02:10 AM
Run another controller's method - by El Forum - 05-20-2009, 02:35 AM
Run another controller's method - by El Forum - 05-20-2009, 09:19 AM
Run another controller's method - by El Forum - 07-03-2010, 06:51 PM
Run another controller's method - by El Forum - 07-04-2010, 08:59 PM



Theme © iAndrew 2016 - Forum software by © MyBB