How to remove system messages in Joomla

This is the code through which you can remove tthe system messages in Joomla on particular page: 

Example in controller\cart.php

public function editpayment() {

$messages = JFactory::getSession()->set('application.queue','');

$view = $this->getView('cart', 'html');

$view->setLayout('select_payment');



// Display it all

$view->display();

}
So this line is use full:
$messages = JFactory::getSession()->set('application.queue','');


If one need to remove from every where in the site the use
1 .Find this in the <body> of your templates index.php and remove this line.
<jdoc:include type="message" />

Using CSS :

.message {
display: inline;
padding : 0px;
color : #ffffff;
font-size : 0px;
}
.notice {
display: inline;
padding : 0px;
color : #ffffff;
font-size : 0px;
}

Comments

  1. Really it's helpful post. I am sharing another helpful information about Joomla. I hope it will be helpful for all. Thanks

    ReplyDelete

Post a Comment