我们正在从1.2
迁移到1.3
,我是cakephp
的新手
我们在这部分中遇到错误
Undefined index: user [APP/controllers/tasks_controller.php, line 922]
$user_tasks = $this->Tasks->load_task_data($this->**params['url']['user'],1);**
Actualy below select box not passing userid to controller.
echo "'< select name=\"quick_user\" id=\"quick_user\" onchange=\"**javascript:changeQuickTasksView()**;\">\n";
";
我不知道这是... onchange=\"javascript:changeQuickTasksView();
答案 0 :(得分:0)
替换它:
$this->params['url']['user'],1)
用这个:
$this->data['quick_user']