0

zendがこのことを許可していることを知りたいのですが、もしそうならどのように?

public xAction()
{
// code here
}

public yAction(){
 $this->_helper->viewRenderer('x');
// code here....
// $this->view->variable= $somedata;
}

**x.phtml**

<?php echo $this->variable; ?>
4

1 に答える 1

1

Zend では、異なるビュー スクリプトをレンダリングできます。次のようにできます:$this->_helper->viewRenderer('controller/action', null, true);
詳細はこちら(例 #11)

于 2013-09-20T13:25:26.333 に答える