~/tmp/ZF/kanext/1/Navi-1.php.html
1 <?php
2 class My_Menu_Plugin_Navi extends Zend_Controller_Plugin_Abstract {
3 public function dispatchLoopStartup(Zend_Controller_Request_Abstract $request)
4 {
5 if(!$request->isXmlHttpRequest()) {
6 $front = Zend_Controller_Front::getInstance();
7 if (!$front->hasPlugin('Zend_Controller_Plugin_ActionStack')) {
8 $actionStack = new Zend_Controller_Plugin_ActionStack();
9 $front->registerPlugin($actionStack, 97);
10 } else {
11 $actionStack = $front->getPlugin('Zend_Controller_Plugin_ActionStack');
12 }
13
14 $naviAction = clone($request);
15 $naviAction->setActionName('navi')
16 ->setControllerName('index');
17 $actionStack->pushStack($naviAction);
18
19 $subnaviAction = clone($request);
20 $subnaviAction->setActionName('subnavi')
21 ->setControllerName('index');
22 $actionStack->pushStack($subnaviAction);
23 }
24 }
25 /*
26 public function preDispatch($request) {
27 $this->getResponse()->appendBody('<p>preDispatch()</p>');
28 }
29
30 public function routeShutdown($request){
31 $this->getResponse()->appendBody('<p>routeShutdown()</p>');
32 }
33 public function dispatchLoopStartup($request){
34 $this->getResponse()->appendBody('<p>dispatchLoopStartup()</p>');
35 }
36
37 public function postDispatch($request){
38 $this->getResponse()->appendBody('<p>postDispatch()</p>');
39 }
40
41 public function dispatchLoopShutdown(){
42 $this->getResponse()->appendBody('<p>dispatchLoopShutdown()/p>');
43 }
44 */
45 }
46 ?>
Wyszukiwarka
Podobne podstrony:
Rozpoznanie navi BMWnavinavireset navinavi blaupunkt$c16Navi AlphabetInstrukcja Odbl Navi Sony u92navi 1 phtmlnaviNavi Vocabulary(sorted navi)Naviwięcej podobnych podstron