API16

JView/setLayout

< API16:JView

The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Description

Sets the layout name to use



Syntax

setLayout($layout)
Parameter Name Default Value Description
$layout The layout name.

Returns

string Previous value

Defined in

libraries/joomla/application/component/view.php

Importing

jimport( 'joomla.application.component.view' );

Source Body

function setLayout($layout)
{
        $previous               = $this->_layout;
        $this->_layout = $layout;
        return $previous;
}



Examples

Code Examples


Advertisement