Zend_Formから拡張されたフォームがあります。フォームを次のようなViewScriptデコレータに配置しています。
$this->setDecorators(array(array('ViewScript', array('viewScript' => 'game/forms/game-management.phtml'))));
このViewScriptに変数を渡したいのですが、これをどのように行うことができるかわかりません。
パーシャルはZend_Viewとしてレンダリングされるため(レンダリングに$ this-> app_store_iconを許可)、レンダリングする変数を渡す方法があるはずです。私は次のことを試みましたが、役に立ちませんでした。
$this->setDecorators(array(array('ViewScript', array('viewScript' => 'game/forms/game-management.phtml'),array('app_store_picon'=>$current_app_store_picon))));
これを行う方法についての助けをいただければ幸いです。
ありがとう