system system.base system.caching system.caching.dependencies system.collections system.console system.db system.db.ar system.db.schema system.db.schema.cubrid system.db.schema.mssql system.db.schema.mysql system.db.schema.oci system.db.schema.pgsql system.db.schema.sqlite system.gii system.i18n system.i18n.gettext system.logging system.test system.utils system.validators system.web system.web.actions system.web.auth system.web.filters system.web.form system.web.helpers system.web.renderers system.web.services system.web.widgets system.web.widgets.captcha system.web.widgets.pagers zii.behaviors zii.widgets zii.widgets.grid zii.widgets.jui

IViewRenderer

system.base
继承 interface IViewRenderer
子类 CPradoViewRenderer, CViewRenderer
可用自 1.0
源码 framework/base/interfaces.php
IViewRenderer interface is implemented by a view renderer class.

A view renderer is viewRenderer application component whose wants to replace the default view rendering logic implemented in CBaseController.

公共方法

隐藏继承的方法

方法描述被定义在
renderFile() Renders a view file. IViewRenderer

方法详情

renderFile() 方法
abstract public mixed renderFile(CBaseController $context, string $file, mixed $data, boolean $return)
$context CBaseController the controller or widget who is rendering the view file.
$file string the view file path
$data mixed the data to be passed to the view
$return boolean whether the rendering result should be returned
{return} mixed the rendering result, or null if the rendering result is not needed.
源码: framework/base/interfaces.php#232 (显示)
public function renderFile($context,$file,$data,$return);

Renders a view file.