http://docs.joomla.org/Display_error_me ... nd_notices
http://docs.joomla.org/JError
I want to set a warning message like:
Code: Select all
JError::raiseWarning(500, JText::_('COM_BANNERS_NO_BANNERS_SELECTED'));
Moderator: ooffick
Code: Select all
JError::raiseWarning(500, JText::_('COM_BANNERS_NO_BANNERS_SELECTED'));
yes, joomla's default ruck milkyway.You're sure your template supports showing the messages?
Code: Select all
<?php
defined('_JEXEC') or die('Restricted access');
jimport( 'joomla.application.component.view');
class MycomponentViewMyview extends JView
{
function display($tpl = null)
{
JError::raiseWarning(500, JText::_('YOUR_STRING'));
...
more view specific code
...
}
Code: Select all
function onAfterInitialise(){
JError::raiseNotice('SOME_ERROR_CODE', 'chickensoup');
}
Code: Select all
<jdoc:include type="message" />