开发者

Cakephp 1.3 JsHelper for AjaxHelper

开发者 https://www.devze.com 2022-12-24 08:54 出处:网络
I\'m start using cakephp and i made a demo app using AjaxHelper $ajax->link(\'title\', \'url\', array(\'update\' => \'mydiv\'))

I'm start using cakephp and i made a demo app using AjaxHelper

$ajax->link('title', 'url', array('update' => 'mydiv'))

Now i want to migrate that to cakephp 1.3 and AjaxHelper is deprecated on cake 1.3 and will be removed, so i want to accomplish the same with JsHelper which is replacing the functionality of AjaxHelper and JavascriptHelper I just can't find how to do that.

I want to upgrade the versions to use jQuery out of the box with cakephp 1.3 and get rid of Prototype javascript li开发者_如何学Gobrary. so, any help ?

I've already read the migration guide and nothing found yet.


Use $js->link('title', 'url', array('update'=>'mydiv')) Don't forget to $js->writeBuffer() in the view. Take a look at manual here.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号