Back to BaseLayout class

Method debug

public string
debug
(mixed $data = array())
Render a layout with debug info
Parameters
  • mixed $data Data passed to the layout
Returns
  • string
Since
  • 3.5
Class: BaseLayout
Project: Joomla

Method debug - Source code

/**
 * Render a layout with debug info
 *
 * @param   mixed  $data  Data passed to the layout
 *
 * @return  string
 *
 * @since    3.5
 */
public function debug($data = array())
{
    $this->setDebug(true);
    $output = $this->render($data);
    $this->setDebug(false);
    return $output;
}
OSZAR »