11 return Url::toRoute($url);
16 if (\array_key_exists(
"q",
$params)===
false) {
17 $view->params[
"q"]=array();
19 $view->params[
"q"][$identifier]=$content;
23 $view->params[$view_var]=$output;
26 public function forward($initialControllerInstance,$controllerName,$actionName,
$params=array()){
28 $ctrInfo=\yii::$app->createController($controllerName.
"/".$actionName);
29 $ctrInfo[0]->{$ctrInfo[1]}(
$params);
30 $result=\ob_get_contents();
35 public function renderContent($initialControllerInstance,$viewName, $params=NULL) {
36 return \yii::$app->view->render($viewName,$params);
40 $uri=new \Ajax\php\yii\URI();
41 return $uri->segment_array();
fromDispatcher($dispatcher)
Collects url parts from the request dispatcher : controllerName, actionName, parameters Used internal...
getUrl($url)
Generates an URL Used internally by phpMv.
renderContent($initialControllerInstance, $viewName, $params=NULL)
render the content of an existing view : $viewName and set the response to the modal content Used int...
createScriptVariable(&$view, $view_var, $output)
Creates the script variable script_foot Used internally by phpMv.
forward($initialControllerInstance, $controllerName, $actionName, $params=array())
Forwards to.
addViewElement($identifier, $content, &$view)
Adds the array of controls q in the $view element Used internally by phpMv.