Cakephp 1.2 到 1.3 迁移,致命错误

发布于 2024-12-11 08:05:52 字数 553 浏览 3 评论 0原文

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

We are migrating from 1.2 to 1.3 , I'm New to cakephp

we are getting error in this part

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";
";

I dont know how this is ... onchange=\"javascript:changeQuickTasksView();

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦中楼上月下 2024-12-18 08:05:52

将其替换

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

为:

$this->data['quick_user']

Replace this:

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

with this:

$this->data['quick_user']
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文