php – 在jQuery中触发Zend FlashMessenger

前端之家收集整理的这篇文章主要介绍了php – 在jQuery中触发Zend FlashMessenger前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正面临一个问题,我想知道是否有人可以指出我正确的方向.

我在我的控制器中使用Zend的FlashMessenger,但在我的一个文件中,我通过AJAX帖子处理我的表单.在这种情况下,我认为Humane-flatty将是Zend FlashMessenger的一个很好的替代品,但它的布局完全不同.

有没有办法在我的AJAX帖子中触发Zend Flashmessenger?

这就是我目前在控制器中调用Zend FlashMessenger的方法

$this->_helper->FlashMessenger(array('success' => 'Succesfully added'));

这是我的jQuery:

if (data.weight !== '' && data.customer != '') {
   $.ajax({
     type: 'POST',url: '/index/line',data: data,success: function(res) {
       $('#open_orders').append(res);
       flashSucces.log('Orderline succesfully added.');
       //Can I call Zend flashmessenger from here?
     }
   });
}



The page is not found

Nginx error!@H_404_33@

The page you are looking for is not found.

Website Administrator

Something has triggered missing webpage on your
website. This is the default 404 error page for
Nginx@H_404_33@ that is distributed with
Fedora. It is located
/usr/share/Nginx/html/404.html

You should customize this error page for your own
site or edit the error_page directive in
the Nginx@H_404_33@ configuration file
/etc/Nginx/Nginx.conf.

猜你在找的PHP相关文章