在程序中总能看到一些输出的信息,比如:商品加入购物车,后出现
这种情况,代码如下:
$session = Mage::getSingleton('core/session');
成功:
$session->addSuccess($this->__('Your review has been accepted for moderation.'));
失败:
$session->addError($this->__('Unable to post the review.'));
OK,在该输出的地方输出了