我得到一个控制器的int值,我想将它发送到相应的视图,但我要么传递或访问错误.这是我想要做的:
控制器:
function send($int = NULL) { $this->set('integer', $int); }
视图:
echo $integer['int']
非常感谢您的帮助!
cakephp cakephp-2.0 cakephp-2.1
cakephp ×1
cakephp-2.0 ×1
cakephp-2.1 ×1