Exemple #1
0
 /**
  * render the content of an existing view : $controller/$action and set the response to the modal content
  * @param JsUtils $js
  * @param Controller $initialController
  * @param string $viewName
  * @param $params The parameters to pass to the view
  */
 public function renderView(JsUtils $js, $initialController, $viewName, $params = array())
 {
     $this->content = $js->renderContent($initialController, $viewName, $params);
 }
 /**
  * render the content of an existing view : $controller/$action and set the response to a new panel
  * @param JsUtils $js
  * @param string $title The panel title
  * @param Controller $initialControllerInstance
  * @param string $viewName
  * @param $params The parameters to pass to the view
  */
 public function renderViewPanel(JsUtils $js, $title, $initialControllerInstance, $viewName, $params = array())
 {
     return $this->addPanel($title, $js->renderContent($initialControllerInstance, $viewName, $params));
 }
Exemple #3
0
 /**
  * render the content of an existing view : $controller/$action and set the response to the modal content
  * @param JsUtils $js
  * @param Controller $initialController
  * @param string $viewName
  * @param $params The parameters to pass to the view
  */
 public function renderView(JsUtils $js, $initialController, $viewName, $params = array())
 {
     return $this->setContent($js->renderContent($initialController, $viewName, $params));
 }