Skeleton controllers
Posted: Thu Feb 05, 2009 5:30 pm
I was going to ask arborint directly via PM but figured I'd post publically and see what came of it...
Anyway, a while back I recall arborint saying that in order to support forward'ing you simply inherit from a base controller class.
In my framework I handled this slightly differently. Instead my front controller essentially invokes the action and checks the return value and if the value is of instance Controller_Forward($controller, $action) the forward is handled by the front by calling a function recusively.
I'm curious what were the reasons behind forward'ing being done in a base class? Was this to support both page/front controller architecture?
Cheers,
Alex
Anyway, a while back I recall arborint saying that in order to support forward'ing you simply inherit from a base controller class.
In my framework I handled this slightly differently. Instead my front controller essentially invokes the action and checks the return value and if the value is of instance Controller_Forward($controller, $action) the forward is handled by the front by calling a function recusively.
I'm curious what were the reasons behind forward'ing being done in a base class? Was this to support both page/front controller architecture?
Cheers,
Alex