Back to HtmlView class

Method setLayoutExt

public string
setLayoutExt
(mixed $value)
Allows a different extension for the layout files to be used
Parameters
  • string $value The extension.
Returns
  • string Previous value
Since
  • 3.0
Class: HtmlView
Project: Joomla

Method setLayoutExt - Source code

/**
 * Allows a different extension for the layout files to be used
 *
 * @param   string  $value  The extension.
 *
 * @return  string  Previous value
 *
 * @since   3.0
 */
public function setLayoutExt($value)
{
    $previous = $this->_layoutExt;
    if ($value = preg_replace('#[^A-Za-z0-9]#', '', trim($value))) {
        $this->_layoutExt = $value;
    }
    return $previous;
}