Page 1 of 1

joomla 2.5 view caching doesn't show JToolBarHelper stuff

Posted: Fri Mar 25, 2016 5:39 pm
by kmchen
I use the controller display(true/false) for view catching.

The view's template contains some tootlbarHelpers like this:

Code: Select all

<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
JToolBarHelper :: title("Title shown in the cachable view" );
JToolBarHelper::help( 'help', JText::_( 'HELP ) );
?>
<div id='cachable_component'>
   ...some outputs
</div>
When the controller uses display(false) all the view is visible but when it uses display(true) the div is visible but not the JToolBarHelper. Did anyone faced that problem ?