【发布时间】:2011-02-17 16:45:13
【问题描述】:
我通过 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)));
但是当我在 admin/form.phtml 中 <?php echo $this->enctype; ?> 时,我什么也没得到。
admin/form.phtml 正确呈现
【问题讨论】:
-
将 render() 更改为 partial() 解决了我的问题
标签: zend-framework view zend-form