zendframework2 ajax,GitHub - WasabiLib/wasabilib: Ready-to-use ajax module for Zend Framework 2

本文介绍WasabiLib ZF2 Ajax Module,一个无需编写JavaScript的PHP库,提供HTML操作、事件触发和组件等功能。只需简单配置,即可实现AJAX请求与响应,配合jQuery、Bootstrap等资源,轻松集成到现有或新项目中。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

#WasabiLib ZF2 Ajax Module

68747470733a2f2f706f7365722e707567782e6f72672f7761736162692f7761736162696c69622f762f737461626c6568747470733a2f2f706f7365722e707567782e6f72672f7761736162692f7761736162696c69622f646f776e6c6f61647368747470733a2f2f706f7365722e707567782e6f72672f7761736162692f7761736162696c69622f762f756e737461626c6568747470733a2f2f706f7365722e707567782e6f72672f7761736162692f7761736162696c69622f6c6963656e7365

WasabiLib is a ready-to-use ajax module.

You do not need to write a single line JavaScript code to create ajax requests and responses.

With the PHP ajax classes you have complete control of the DOM from server-side.

It comes with ready-to-use components. Most important are:

1. InnerHtml - replace, append or remove HTML snippets from HTML elements. http://www.wasabilib.org/application/pages/examples#inner_html

3. TriggerEventManager - trigger JavaScript events from within the PHP code http://www.wasabilib.org/application/pages/examples#trigger_event_manager

And a lot of extensions based on these components

##Requirements

For a full integration the following assets are needed:

jQuery, Bootstrap, FontAwesome

##Installation

For a not yet existing project we recommend the WasabiLib Skeleton Application https://github.com/WasabiLib/wasabilib_zf2_skeleton_application

###For existing ZF2 projects

Clone the repository into your vendor folder

Copy the css and img files under venodor/wasabilib/wasabi into the public css and img folder

Copy the wasabilib.min.js, wasabi.gritter.js, wasabi.suggest.js into public/js

Include the js-files in the layout.phtml as they are loaded after jquery

Include the CSS files as they are loaded after bootstrap.css

##Please Visit http://www.wasabilib.org for detailed information.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值