CakePHP - 使用 AJAX/Jquery 进行实时搜索/自动建议/自动完成搜索

发布于 2024-12-26 12:11:49 字数 145 浏览 3 评论 0原文

很长一段时间以来我一直在尝试用它来开发一个。我尝试了很多教程,但没有任何作用。

所以我的简单问题是,是否有人知道有关在 CAkePHP 中进行自动完成/自动建议搜索的好教程。

我正在使用 CakePHP 1.3。

提前感谢大家。

I'd been trying to develop one with this for a long time. I'd try a lot of tutorial,but nothing works.

So my simple question, is there anybody know a good tutorial on making an autocomplete/autosuggest search in CAkePHP.

I'm using CakePHP 1.3.

Thanx in advance to all.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

抚笙 2025-01-02 12:11:49

只是一个建议:

通过这种方式,您可以通过 jquery ui 与服务器通信,并将搜索结果输出为 json。
Teknoid 网站上有一篇很好的文章介绍了这一点:
- CakePHP 中的 JQuery 自动完成

Just a suggestion:

This way you communicate with server via jquery ui and output search results as json.
There's a good article at Teknoid's site covering this:
- JQuery autocomplete in CakePHP

回忆躺在深渊里 2025-01-02 12:11:49

那么你可以尝试这个实时搜索
尽管它是在 CakePHP 1.2 中完成的,但您可以获得实现的概念并从中创建您自己的 1.3 版本。
希望它能以某种方式有所帮助。

Well you could try this Live Search
Though its done in CakePHP 1.2 you could get the concepts of implementation and create your own from it for 1.3 version.
Hope it helps in some way.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文