Ka Extensions for OpenCart 3

This documentation applies to Ka Extensions for OpenCart 3.x only. It is not compatible with OpenCart 4.

Controller extends Controller
in component
uses TraitSession, TraitController

AbstractYes

Replaces standard opencart Controller class with extended functionality. Recommended as a base class for all controllers.

Table of Contents

Properties

Methods

__construct()  : mixed
addTopMessage()  : mixed
disableRender()  : mixed
enableRender()  : mixed
getRenderData()  : mixed
getRenderTemplate()  : mixed
getSession()  : mixed
getTopMessages()  : mixed
kamodel()  : mixed
loadAdminPageBlocks()  : mixed
loadCustomerPageBlocks()  : mixed
onLoad()  : mixed
render()  : mixed
setOutput()  : mixed
setSession()  : mixed
showPage()  : mixed

Properties

$kadb

Earlier it was used as alternative to the standard db class. Latest 'Ka Extensions' library intends to move all extended DB functions to the standard DB class.

protected mixed $kadb = null

Methods

__construct()

public __construct(mixed $registry) : mixed
Parameters
$registry : mixed

addTopMessage()

protected addTopMessage(mixed $msg[, mixed $type = 'I' ]) : mixed
Parameters
$msg : mixed
$type : mixed = 'I'

disableRender()

protected disableRender([mixed $templates = null ]) : mixed
Parameters
$templates : mixed = null

getSession()

protected & getSession(mixed $key) : mixed
Parameters
$key : mixed

getTopMessages()

protected getTopMessages([mixed $clear = true ]) : mixed
Parameters
$clear : mixed = true

kamodel()

protected kamodel(mixed $model) : mixed

The function loads a model within the module namespace

Parameters
$model : mixed

loadCustomerPageBlocks()

protected loadCustomerPageBlocks() : mixed

render()

protected render([mixed $tpl = '' ][, mixed $data = array() ]) : mixed
Parameters
$tpl : mixed = ''
$data : mixed = array()

setOutput()

protected setOutput([mixed $param = null ]) : mixed

Use the native response->setOutput or $this->showPage()

Parameters
$param : mixed = null

setSession()

protected setSession(mixed $key, mixed $value) : mixed
Parameters
$key : mixed
$value : mixed

showPage()

protected showPage([mixed $template = '' ][, mixed $data = array() ]) : mixed
Parameters
$template : mixed = ''
$data : mixed = array()

        
On this page

Search results