Table of Contents

setLayout

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Application Class JView Method setLayout Reference setLayout() Never Work in Progress

Sets the layout name to use. This method is used to control the layout template name that is used to render the view.

The method returns a string containing the name of the previous layout template.

Syntax

string setLayout ( $layout )

$layout string is a string containing the name of the layout to use.

Examples

Example

echo $this->setLayout( 'form' );

might produce:

Result

default

DISCUSSION~~