zendがこのことを許可していることを知りたいのですが、もしそうならどのように?
public xAction()
{
// code here
}
public yAction(){
$this->_helper->viewRenderer('x');
// code here....
// $this->view->variable= $somedata;
}
**x.phtml**
<?php echo $this->variable; ?>
zendがこのことを許可していることを知りたいのですが、もしそうならどのように?
public xAction()
{
// code here
}
public yAction(){
$this->_helper->viewRenderer('x');
// code here....
// $this->view->variable= $somedata;
}
**x.phtml**
<?php echo $this->variable; ?>
Zend では、異なるビュー スクリプトをレンダリングできます。次のようにできます:$this->_helper->viewRenderer('controller/action', null, true);
詳細はこちら(例 #11)