ViewInterface

Joomla Platform CMS Interface

since

4.0.0

package

Application

Methods

display

Execute and display a template script.

display(string tpl = null) : void
since

4.0.0

Arguments

tpl

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

getModel

Method to get the model object

getModel(string name = null) : \Joomla\CMS\MVC\Model\BaseDatabaseModel
since

3.0

Arguments

name

stringThe name of the model (optional)

Response

\Joomla\CMS\MVC\Model\BaseDatabaseModelThe model object