php – 在jQuery中触发Zend FlashMessenger

发布时间:2022-04-30 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了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!

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 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 configuration file
/etc/Nginx/Nginx.conf.

脚本宝典总结

以上是脚本宝典为你收集整理的php – 在jQuery中触发Zend FlashMessenger全部内容,希望文章能够帮你解决php – 在jQuery中触发Zend FlashMessenger所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签:jquery