[php]
// Controller中为Form传递值
public function ***Action()
{
$form = new Application_Form_Category(array(‘fid’=>1));
$this->view->form = $form;
}
[/php]
[php]
// Form中获得值
$this->getAttrib(‘fid’);
[/php]
[php]
// Controller中为Form传递值
public function ***Action()
{
$form = new Application_Form_Category(array(‘fid’=>1));
$this->view->form = $form;
}
[/php]
[php]
// Form中获得值
$this->getAttrib(‘fid’);
[/php]