1
呈現視圖我通過我的Zend_Form嘗試:從Zend_Form的
$output .= $this->_view->render('admin/form.phtml'
, array('id' => $this->getName()
, 'action' => $this->getAction()
, 'method' => $this->getMethod()
, 'enctype' => $this->getEnctype()
, 'data' => array('code' => $code
, 'name' => $name
, 'description' => $description)));
,但是當我在<?php echo $this->enctype; ?>
管理/ form.phtml我什麼也沒得到。
admin/form.phtml被正確渲染
將render()更改爲partial()解決了我的問題 – 2011-02-17 16:57:53