Documentation

FrontendController extends SystemComponentFrontendController
in package

Specific FrontendController for this Component. Use this to easily create a frontent view

Tags
copyright

Cloudrexx AG

author

Michael Ritter michael.ritter@comvation.com

subpackage

core_user

Table of Contents

Properties

$cx  : Cx
Main class instance
$systemComponentController  : SystemComponentController
SystemComponentController for this Component

Methods

__call()  : mixed
Route methods like getName(), getType(), getDirectory(), etc.
__construct()  : mixed
Creates new controller
getPage()  : mixed
This is called by the default ComponentController and does all the repeating work
getSystemComponentController()  : SystemComponentController
Returns the main controller
parsePage()  : mixed
Use this to parse your frontend page

Properties

Methods

__call()

Route methods like getName(), getType(), getDirectory(), etc.

public __call(string $methodName, array<string|int, mixed> $arguments) : mixed
Parameters
$methodName : string

Name of method to call

$arguments : array<string|int, mixed>

List of arguments for the method to call

Return values
mixed

Return value of the method to call

getPage()

This is called by the default ComponentController and does all the repeating work

public getPage(Page $page) : mixed

This creates a template of the page content and calls parsePage($template)

Parameters
$page : Page

Resolved page

parsePage()

Use this to parse your frontend page

public parsePage(Sigma $template) : mixed

You will get a template based on the content of the resolved page You can access Cx class using $this->cx To show messages, use \Message class

Parameters
$template : Sigma

Template containing content of resolved page


        
On this page

Search results