Hey Im following the book and on the part that we define that you cant create an Issue without having a project linked to it, Im having the following problem, apparently the call to filterchain is failing, where is it defined or how can I fix this?
Undefined variable: filterchain
/Users/user/Sites/yii11/trackstar/protected/controllers/IssueController.php(217)
205 public function filterProjectContext($filterChain)
206 {
207 //set the project identifier based on either the GET or POST input
208 //request variables, since we allow both types for our actions
209 $projectId = null;
210 if(isset($_GET['pid']))
211 $projectId = $_GET['pid'];
212 else
213 if(isset($_POST['pid']))
214 $projectId = $_POST['pid'];
215 $this->loadProject($projectId);
216 //complete the running of other filters and execute the requested action
217 $filterchain->run();
218 }
219 }
Stack Trace
#0 +
/Users/user/Sites/yii11/framework/web/filters/CInlineFilter.php(59): IssueController->filterProjectContext(CFilterChain)
#1 +
/Users/user/Sites/yii11/framework/web/filters/CFilterChain.php(131): CInlineFilter->filter(CFilterChain)
#2 +
/Users/user/Sites/yii11/framework/web/filters/CFilter.php(41): CFilterChain->run()
#3 +
/Users/user/Sites/yii11/framework/web/CController.php(1144): CFilter->filter(CFilterChain)
#4 +
/Users/user/Sites/yii11/framework/web/filters/CInlineFilter.php(59): CController->filterAccessControl(CFilterChain)
#5 +
/Users/user/Sites/yii11/framework/web/filters/CFilterChain.php(131): CInlineFilter->filter(CFilterChain)
#6 +
/Users/user/Sites/yii11/framework/web/CController.php(283): CFilterChain->run()
#7 +
/Users/user/Sites/yii11/framework/web/CController.php(257): CController->runActionWithFilters(CInlineAction, array("accessControl", "projectContext + create"))
#8 +
/Users/user/Sites/yii11/framework/web/CWebApplication.php(277): CController->run("create")
#9 +
/Users/user/Sites/yii11/framework/web/CWebApplication.php(136): CWebApplication->runController("issue/create")
#10 +
/Users/user/Sites/yii11/framework/base/CApplication.php(158): CWebApplication->processRequest()
#11 –
/Users/user/Sites/yii11/trackstar/index.php(13): CApplication->run()
08 defined(‘YII_DEBUG’) or define(‘YII_DEBUG’,true); 09 // specify how many levels of call stack should be shown in each log message 10 defined(‘YII_TRACE_LEVEL’) or define(‘YII_TRACE_LEVEL’,3); 11 12 require_once($yii); 13 Yii::createWebApplication($config)->run();