找到你要的答案

Q:Jquery Mobile Login with Yii Issue

Q:Yii的问题,jQuery移动登录

I'm in serious need of some help!

I have a YII application installed with a client side front end framework Jquerymobile (JQM)

I really need some help with this, Basically I need to login via the loginUserFromClient function from Yii

The issue is I believe with the way I am asking for the login? When I use Firebug I get the Get command, Rather than the examples Post Also I get a difference response.

I have only really edited in 2 files which are the cause of this (everying inside yii works fine its just linking htem together)

Here are the two files i have been using (excuse PasteBin) http://pastebin.com/DN73jtAY http://pastebin.com/DTZWS1fj

我需要一些帮助!

我有一个安装一个客户端的前端框架Jquerymobile Yii应用(实施)

我真的需要一些帮助,我基本上需要登录的功能从一loginuserfromclient

问题是我相信我的方式要求登录?当我使用Firebug我得到的命令,而不是实例后我也得到一个不同的响应。

我只有真的编辑2文件是这个原因(都在一好就将它们一起)

Here are the two files i have been using (excuse PasteBin) http://pastebin.com/DN73jtAY http://pastebin.com/DTZWS1fj

answer1: 回答1:

If you want to post a form, you must explicitly request this.

change

 <form id="loginForm">

to

 <form id="loginForm" method='post'>

如果要发布窗体,必须显式请求此。

改变

 <form id="loginForm">

 <form id="loginForm" method='post'>
php  jquery  jquery-mobile  yii