0

I am new to Sencha touch. I need to fetch record from mysql database and show it on the screen.I I have read the documentation of sencha,but I dnt understand most of it. Please help me. Information in detail will be very helpful. Thanks in Advance.

4

1 回答 1

1

Sencha touch 是 JS 框架,它不附带数据库驱动程序,因此您无法从它连接到 Db(顺便说一句,即使它附带,我也不建议将移动设备连接到我的数据库)。因此,如果您需要与数据库通信,您必须有一个代理/控制器层(在 Java/php 或您喜欢的任何其他技术中),它将在一端连接到 Db 并在另一端公开 http 接口,通过该接口 sencha touch 应用程序会沟通。

最佳实践是编写一个 Restful 服务并使用您的应用程序通过它进行通信。如果您还不知道,请在 Google 上搜索“如何创建 rest web 服务”。

于 2013-03-20T13:48:02.493 回答