Class CViewRenderer
CViewRenderer is the base class for view renderer classes.
A view renderer is an application component that renders views written in a customized syntax.
Once installing a view renderer as a 'viewRenderer' application component, the normal view rendering process will be intercepted by the renderer. The renderer will first parse the source view file and then render the the resulting view file.
Parsing results are saved as temporary files that may be stored under the application runtime directory or together with the source view file.
- CComponent
- CApplicationComponent implements IApplicationComponent
- CViewRenderer implements IViewRenderer
Direct known subclasses
CPradoViewRendererPackage: system\web\renderers
Copyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Steve Heyns http://customgothic.com/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.0
Located at x2engine/framework/web/renderers/CViewRenderer.php
abstract protected
|
#
generateViewFile( string $sourceFile, string $viewFile )
Parses the source view file and saves the results as another file. |
public
mixed
|
#
renderFile(
Renders a view file. This method is required by |
protected
string
|
getIsInitialized(),
init()
|
public
boolean
|
$useRuntimePath | true |
#
whether to store the parsing results in the application's runtime directory. Defaults to true. If false, the parsing results will be saved as files under the same directory as the source view files and the file names will be the source file names appended with letter 'c'. |
public
integer
|
$filePermission | 0755 |
#
the chmod permission for temporary directories and files generated during parsing. Defaults to 0755 (owner rwx, group rx and others rx). |
public
string
|
$fileExtension | '.php' |
#
the extension name of the view file. Defaults to '.php'. |
$behaviors
|
$isInitialized
|