本文整理匯總了PHP中yii\base\Widget::render方法的典型用法代碼示例。如果您正苦於以下問題:PHP Widget::render方法的具體用法?PHP Widget::render怎麽用?PHP Widget::render使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類yii\base\Widget
的用法示例。
在下文中一共展示了Widget::render方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: render
public function render($view, $params = [])
{
if (is_null($view)) {
$view = "{$this->classBaseNameID()}/run";
}
return parent::render($view, $params);
}
示例2: render
/**
* @inheritdoc
*/
public function render($view, $params = [])
{
return parent::render($this->getViewsPath() . '/' . $view, $params);
}
示例3: render
/**
* Overridden to set view file path
*
* @param string $view
* @param array $params
* @return string
*/
public function render($view, $params = [])
{
$renderParams = ArrayHelper::merge(['source' => $this->source, 'resultId' => $this->resultId], $params);
return parent::render($view, $renderParams);
}
示例4: render
/**
* @inheritdoc
*/
public function render($view, $params = [])
{
$params['useFontAwesome'] = $this->useFontAwesome;
$params['theme'] = $this->getThemeModule();
$params['partRow'] = $this->partRow;
$params['isInSidebar'] = $this->getIsInSidebar();
$params['header'] = $this->header;
$params['displayHeader'] = $this->displayHeader;
return parent::render($view, $params);
}