voilà, la question est résumé dans l'intituler, comment je peux appeler un actionStack dans une vue ?
dans mon bootStrap, je fais ça :j'arrive très bien à reprendre le rendu du footer, header, menutop dans mon layout en faisant :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 Zend_Controller_Action_HelperBroker::addPath(APPLICATION_PATH .'/controllers/helpers'); $actionStack = Zend_Controller_Action_HelperBroker::getStaticHelper('actionStack'); $actionStack->actionToStack('footer','partial','front'); $actionStack->actionToStack('header','partial','front'); $actionStack->actionToStack('menutop','partial','front'); $actionStack->actionToStack('menuvertical','partial','front');mais mon pb c'est que l'actionStack "menuVertical" dois être placer dans le rendu de content. Je cherche donc faire le rendu du stack dans le template d'une action. Par exemple dans /application/view/script/index/index.phtml
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 <?='<?xml version="1.0" encoding="UTF-8"?>'?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <?=$this->headTitle() ?> <?=$this->headMeta() ?> <?=$this->headLink() ?> <?=$this->headStyle() ?> <?=$this->headScript() ?> </head> <body> <div id="main"> <?=$this->layout()->header;?> <div id="content"> <?=$this->layout()->menutop;?> <?=$this->layout()->content;?> </div> <?=$this->layout()->footer;?> </div> </body> </html>
Est ce que c'est possible ?
Et comment faire ?
Partager