IViewRenderer
包 | system.base |
---|---|
继承 | interface IViewRenderer |
子类 | CPradoViewRenderer, CViewRenderer |
可用自 | 1.0 |
版本 | $Id$ |
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.
A view renderer is viewRenderer application component whose wants to replace the default view rendering logic implemented in CBaseController.
方法详情
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. |
Renders a view file.