- <?=$this -> layout() -> navi ?>
- <?=$this -> layout() -> content ?>
Czemu nie moge zrobic tego View Helperem?
Zeby to wykonac musze robic taki dlugi kod:
<?php public function indexAction(){ $this -> _helper -> layout -> assign('adminNavi', $this -> view -> render('admin-navi.phtml')); } ?>
Strasznie uciazliwe.
Fajnie by bylo gdyby zadzial taki sposob
<?php public function indexAction(){ $this -> _helper -> layout -> setContentKey('contet'); $this -> render('myscript1.phtml'); } public function naviAction(){ $this -> _helper -> layout -> setContentKey('navi'); $this -> render('menubar.phtml'); } ?>
To by bylo najlpesze. Logiczne i proste, po prostu przelaczalbym sie pomiedzy contentKey, niestety ZF reaguje tak ze przekazuje output do ostatniego ustawionego keya. W tym wypadku 'navi'
pzdr