Cakephp 1.2到1.3迁移,致命错误

时间:2011-10-21 12:00:03

标签: php cakephp

我们正在从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();

1 个答案:

答案 0 :(得分:0)

替换它:

$this->params['url']['user'],1)

用这个:

$this->data['quick_user']