CakePHP - 使用 AJAX/Jquery 进行实时搜索/自动建议/自动完成搜索
很长一段时间以来我一直在尝试用它来开发一个。我尝试了很多教程,但没有任何作用。
所以我的简单问题是,是否有人知道有关在 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
只是一个建议:
JqueryUI 自动完成
CakePHP JSON 生成的输出 < /p>
通过这种方式,您可以通过 jquery ui 与服务器通信,并将搜索结果输出为 json。
Teknoid 网站上有一篇很好的文章介绍了这一点:
- CakePHP 中的 JQuery 自动完成
Just a suggestion:
JqueryUI autocomplete
CakePHP JSON-generated output
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
那么你可以尝试这个实时搜索
尽管它是在 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.