Well my approach is that The FrontController really should only execute a PageController based on system input. The PC itself is then responsible for what filters it has to pass.
So you'd have:
Provides a lot more flexibility.PHP Code:class UserAddController extends PageController {
var $filters = array();
function addFilter() {}
function executeFilters() {}
function execute() {} // execute PC
}
And then again Fowler said that a pattern is only a guide to a solution. One always has to modify the pattern for his own use - a pattern is not defined to do this and that.










Bookmarks