Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 yii 我正在创建登录功能。但在我的例子中,客户端设计是在 extjs 中,而服务器端设计是在 Yii 框架中。因此,在 yii 控制器中,我想以客户端输入用户名和密码的方式创建登录功能。在 extjs 中,这些数据将以 Json 格式被接受,然后被编码并发送到服务器。所以现在在服务器端我将收到用户名和密码。所以我的工作是使用从 extjs 收到的用户名和密码在 Yii 中创建登录功能。即在开始阶段我想创建登录功能假设硬编码的用户名和密码。所以你能帮帮我吗?
如果您使用 POST 方法 inf from 在登录表单中发送 JSON 加密数据,您可以使用类似于 actionLogin 方法的 $_POST['your_post_variable'] 在控制器中检索它(注意:确保您在表单操作中调用正确的方法)。
请分享登录表格。
问候,HBK