@@ 23-32 (lines=10) @@ | ||
20 | $view->__set($view_var,$output); |
|
21 | } |
|
22 | ||
23 | public function forward($initialController,$controller,$action){ |
|
24 | $dispatcher = $initialController->dispatcher; |
|
25 | $dispatcher->setControllerName($controller); |
|
26 | $dispatcher->setActionName($action); |
|
27 | $dispatcher->dispatch(); |
|
28 | $template=$initialController->view->getRender($dispatcher->getControllerName(), $dispatcher->getActionName(),$dispatcher->getParams(), function ($view) { |
|
29 | $view->setRenderLevel(View::LEVEL_ACTION_VIEW); |
|
30 | }); |
|
31 | return $template; |
|
32 | } |
|
33 | ||
34 | public function renderContent($view, $controller, $action, $params=NULL) { |
|
35 | $template=$view->getRender($controller, $action, $params, function ($view) { |
@@ 38-47 (lines=10) @@ | ||
35 | $view->setVar($view_var,$output); |
|
36 | } |
|
37 | ||
38 | public function forward($initialController,$controller,$action){ |
|
39 | $dispatcher = $initialController->dispatcher; |
|
40 | $dispatcher->setControllerName($controller); |
|
41 | $dispatcher->setActionName($action); |
|
42 | $dispatcher->dispatch(); |
|
43 | $template=$initialController->view->getRender($dispatcher->getControllerName(), $dispatcher->getActionName(),$dispatcher->getParams(), function ($view) { |
|
44 | $view->setRenderLevel(View::LEVEL_ACTION_VIEW); |
|
45 | }); |
|
46 | return $template; |
|
47 | } |
|
48 | ||
49 | public function renderContent($view, $controller, $action, $params=NULL) { |
|
50 | $template=$view->getRender($controller, $action, $params, function ($view) { |