03-18-2010, 10:13 AM
[eluser]tkrop[/eluser]
I'm in the process of converting a website from our custom framework to CodeIgniter. Our framework basically returns an ActionResult from every controller action, which can be converted to a string.
This is the situation:
Can this be done with CodeIgniter?
I'm in the process of converting a website from our custom framework to CodeIgniter. Our framework basically returns an ActionResult from every controller action, which can be converted to a string.
This is the situation:
Code:
function ControllerAction($route) {
$subcontrollerRef = $route->object;
$page = $route->page;
$subpage = $route->subpage;
$controller = ControllerFactory::getController($subcontrollerRef);
return $controller->$page($route); //dont know if this is syntactically correct, but this is what's going on. The $page function inside the $controller var, is the 'action' name that needs to be executed/returned.
}
Can this be done with CodeIgniter?