| API | Package | Subpackage | Class | Method | Reference | Last reviewed | Doc status |
|---|---|---|---|---|---|---|---|
Home |
Joomla.Framework |
Application |
JView |
setLayout |
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.
string setLayout ( $layout )
| $layout | string | is a string containing the name of the layout to use. |
Example
echo $this->setLayout( 'form' );
might produce:
Result
default
DISCUSSION~~