@@ -50,14 +50,14 @@ |
||
50 | 50 | } |
51 | 51 | |
52 | 52 | /** |
53 | - * render the content of $controller::$action and set the response to a new panel |
|
54 | - * @param JsUtils $js |
|
55 | - * @param string $title The panel title |
|
56 | - * @param Controller $initialController |
|
57 | - * @param string $controller a Phalcon controller |
|
58 | - * @param string $action a Phalcon action |
|
59 | - * @param array $params |
|
60 | - */ |
|
53 | + * render the content of $controller::$action and set the response to a new panel |
|
54 | + * @param JsUtils $js |
|
55 | + * @param string $title The panel title |
|
56 | + * @param Controller $initialController |
|
57 | + * @param string $controller a Phalcon controller |
|
58 | + * @param string $action a Phalcon action |
|
59 | + * @param array $params |
|
60 | + */ |
|
61 | 61 | public function forwardPanel(JsUtils $js,$title,$initialController,$controller,$action,$params=array()){ |
62 | 62 | return $this->addPanel($title, $js->forward($initialController, $controller, $action,$params)); |
63 | 63 | } |
@@ -48,15 +48,15 @@ |
||
48 | 48 | } |
49 | 49 | |
50 | 50 | public function renderContent($initialControllerInstance,$viewName, $params=NULL) { |
51 | - if ($initialControllerInstance->has('templating')) { |
|
52 | - return $initialControllerInstance->get('templating')->render($viewName, $params); |
|
53 | - } |
|
51 | + if ($initialControllerInstance->has('templating')) { |
|
52 | + return $initialControllerInstance->get('templating')->render($viewName, $params); |
|
53 | + } |
|
54 | 54 | |
55 | - if (!$initialControllerInstance->has('twig')) { |
|
56 | - throw new \LogicException('You can not use the "renderView" method if the Templating Component or the Twig Bundle are not available.'); |
|
57 | - } |
|
55 | + if (!$initialControllerInstance->has('twig')) { |
|
56 | + throw new \LogicException('You can not use the "renderView" method if the Templating Component or the Twig Bundle are not available.'); |
|
57 | + } |
|
58 | 58 | |
59 | - return $initialControllerInstance->get('twig')->render($viewName, $params); |
|
59 | + return $initialControllerInstance->get('twig')->render($viewName, $params); |
|
60 | 60 | } |
61 | 61 | |
62 | 62 | public function fromDispatcher($dispatcher){ |
@@ -99,12 +99,12 @@ |
||
99 | 99 | } |
100 | 100 | |
101 | 101 | /** |
102 | - * Adds an image |
|
103 | - * @param string $src |
|
104 | - * @param string $alt |
|
105 | - * @param boolean $before |
|
106 | - * @return HtmlImg |
|
107 | - */ |
|
102 | + * Adds an image |
|
103 | + * @param string $src |
|
104 | + * @param string $alt |
|
105 | + * @param boolean $before |
|
106 | + * @return HtmlImg |
|
107 | + */ |
|
108 | 108 | public function addImage($src, $alt="", $before=true) { |
109 | 109 | $img=new HtmlImg("image-" . $this->identifier, $src, $alt); |
110 | 110 | $img->setClass(""); |