Public Member Functions | |
actionIndex () | |
actionStatic () | |
actionDynamic () | |
actionStartPage () | |
processOutput ($output) | |
getCss ($file, $timestamp=null, $combine=true, $media= '') | |
getJs ($file, $timestamp=null, $combine=true) | |
getCoreJs ($file) | |
![]() | |
getClient () | |
getAssetsPath () | |
getViewFile ($viewName) | |
getJs ($path) | |
renderMail ($view, $title=null, $data) | |
redirect ($url, $terminate=true, $statusCode=302) |
Additional Inherited Members | |
![]() | |
$layout = '//layouts/gportal' | |
$mailLayout = '//layouts/mail' | |
![]() | |
beforeAction ($action) |
Gentics Portal.Node PHP Author & Copyright (c) by Gentics Software GmbH sales @gen tics. comhttp://www.gentics.com Licenses can be found in the LICENSE.txt file in the root-folder of this installation You must not use this software without a valid license agreement.
Controller which recieve all requests to Content Repository
All request for pages which should be rendered(html, php) handled by actionDynamic() All other requests, for static content (img, doc, pdf, etc.) handled by actionStatic() Css and js files also handled by actionStatic() if they are not wrapped in Yii::app()->clientScript->registerCssFile() or Yii::app()->clientScript->registerScriptFile(). If they are wrapped then they will compressed and stored in /assets folder.
To handle request to specific node from content repository add these lines into routers.php 'rules' => array( '<path:nodename\/.+.(php|html)>' => 'contentRepository/dynamic', '<path:nodename\/.+>' => 'contentRepository/static', ), nodename - name of node(for exaple - gportal)
Definition at line 26 of file RendererController.php.
RendererController::actionDynamic | ( | ) |
Action which render all dynamic content: php, html files
CHttpException | |
Exception |
Definition at line 87 of file RendererController.php.
Referenced by actionStartPage().
RendererController::actionIndex | ( | ) |
Default action
Definition at line 33 of file RendererController.php.
RendererController::actionStartPage | ( | ) |
Handle folder start page. In case user make request to folder like /Content.Node/service/
Definition at line 118 of file RendererController.php.
References actionDynamic().
RendererController::actionStatic | ( | ) |
Action which render all static content: js, css, doc, pdf files etc.
CHttpException | |
Exception |
Definition at line 46 of file RendererController.php.
References HeadersHelper\cache(), and HeadersHelper\forFile().
RendererController::getCoreJs | ( | $file | ) |
Register general javascript library which is used by page and widgets and which should be of the same version in many palces. For example jQuery library
string | $file | filename |
Definition at line 215 of file RendererController.php.
RendererController::getCss | ( | $file, | |
$timestamp = null , |
|||
$combine = true , |
|||
$media = '' |
|||
) |
Register css file in page
string | $file | filename |
null | $timestamp | last update timestamp of this file |
bool | $combine | if combine and compress this file |
string | $media | media that the CSS code should be applied to. If empty, it means all media types. |
Definition at line 188 of file RendererController.php.
RendererController::getJs | ( | $file, | |
$timestamp = null , |
|||
$combine = true |
|||
) |
Register js file in page
string | $file | filename |
null | $timestamp | last update timestamp of this file |
bool | $combine | if combine and compress this file |
Definition at line 202 of file RendererController.php.