【发布时间】:2011-09-21 06:55:59
【问题描述】:
当我在注册页面点击提交时,我收到"Notice (8): Undefined variable: id [APP\views\merry_parents\report_card.ctp".
我只是想使用$this->set($id,$this->data['MerryParent']['id']); 将$this->data['MerryParent']['id'] 从merry_parents_controller 传递到report_card 视图
谁能告诉我我做错了什么?提前致谢。
以下是我的代码:
//report_card.ctp
<?php
echo 'HALLO';
echo $id;
?>
【问题讨论】:
标签: cakephp variables view controller