0
我想使用自定義裝飾與Zend_Form。我創建了定製的裝飾和使用TEH下面的代碼
$form = new Zend_Form();
$form->addElementPrefixPath("Moon_Form_Decorator","Moon/Form/Decorator/","decorator");
$form->setAction("/question/index/ask-process")->setMethod("post");
$title = new Zend_Form_Element_Text('title');
$title->setRequired(true)->setDecorators(array("Test"));
$title->setAttrib("class","inputText");
$tag = new Zend_Form_Element_Text('tag');
$tag->setRequired(true)->setDecorators(array("ViewHelper","Errors"));
$tag->setAttrib("class","inputText");
$form->addElement($title);
$form->addElement($tag);
return $form;
如果我用$形式 - > addElementPrefixPath(「Moon_Form_Decorator」,「月亮/表格/裝飾/」,「裝飾」);,我的MVC只顯示白色空白FF上的頁面,IE上的「Internet Explorer無法顯示網頁」。
我該怎麼辦?