joomla 2.5 view caching doesn't show JToolBarHelper stuff

For Joomla! 2.5 Coding related discussions, please use:
Note: All 1.6, 1.7 and 3.5 releases have reached end of life and should be updated to 3.x.

Moderator: ooffick

Forum rules
Please use the mailing list here: rather than this forum.
Joomla! Intern
Joomla! Intern
Posts: 57
Joined: Sat Oct 21, 2006 12:57 am
Location: marseille (13) france

joomla 2.5 view caching doesn't show JToolBarHelper stuff

Post by kmchen » Fri Mar 25, 2016 5:39 pm

I use the controller display(true/false) for view catching.

The view's template contains some tootlbarHelpers like this:

Code: Select all

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
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 ?


Return to “Joomla! 2.5 Coding”