當我創建我的網頁indexSuccess.php的,我用的指示等:如何解決注意:未定義的變量:形式...?
Notice: Undefined variable: form in C:\wamp\www\MyProject\apps\frontend\modules\addAnnonce\templates\indexSuccess.php on line 84
Fatal error: Call to a member function render() on a non-object in C:\wamp\www\MyProject\apps\frontend\modules\addAnnonce\templates\indexSuccess.php on line 84
我可以DOAS爲題解:
<?php echo $form['titre']->render();?>
執行就像當它給了我一個錯誤?
你的形式分配給您的行動模板'$ form':'$這個 - >形式=新WhateverClassForm();'? – prodigitalson 2011-05-31 02:35:43