I've created a com_content layout HTML override to the file layouts/joomla/content/blog_style_default_item_title.php but are now getting the following white screen error message:
Fatal error: Call to undefined method Gantry::escape() in XXXXX/templates/rt_myriad/html/layouts/blog_style_default_item_title.php on line 18
The file the error message refers to is as follows:
<?php
defined('JPATH_BASE') or die;
// Create a shortcut for params.
$params = $displayData->params;
//$canEdit = $displayData->params->get('access-edit');
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
?>
<?php echo $this->escape($displayData->title); ?>
Any ideas on how to fix this?