Good point (again)! Here's a modification to FilterChain:
Originally Posted by Selkirk
This would change frontcontroller.inc.php to:
var $filters = array();
$this->filters = $filterClass;
if ($filterClass = current($this->filters))
include_once('filters/' . $filterClass . '.class.php');
$filter =& new $fcfilterClass);
There are two obvious problems though:
$fc =& new FilterChain();
1. I'm making assumptions about the location and naming of the filters.
2. There's no way to pass parameters to the Filter constructors.
Any suggestions? As always, I want to keep things as absolutely simple as possible.