Since: 4.0.0

interface ViewInterface

Joomla Platform CMS Interface

Methods

void
display(string $tpl = null)

Execute and display a template script.

getModel(string $name = null)

Method to get the model object

string
getName()

Method to get the view name

Details

void display(string $tpl = null)

Since: 4.0.0

Execute and display a template script.

Parameters

string $tpl

The name of the template file to parse; automatically searches through the template paths.

Return Value

void

BaseDatabaseModel getModel(string $name = null)

Since: 3.0

Method to get the model object

Parameters

string $name

The name of the model (optional)

Return Value

BaseDatabaseModel

The model object

string getName()

Since: 5.0.0

Method to get the view name

Return Value

string

The name of the view