+ -
当前位置:首页 → 问答吧 → 关于jquery调用已做“URL_MODEL 为2”设置的方法的问题

关于jquery调用已做“URL_MODEL 为2”设置的方法的问题

时间:2011-09-22

来源:互联网

呵呵,题目有些长哦,,,,,,我做了URL的重写设置,并能够访问相关的页面
现在的问题是,就是不知道如何在JQUERY的ajax里面如何调用相关类的方法。


<?php

class IndexAction extends Action{

public function login(){


$this->display("login");

}

public function register(){

$this->display("register");

}

public function memberstatus(){

.......
//
$this->ajaxReturn($memberstatus_result,"获取成功",1);

}

}

?>
登陆页面可以通过  http://<SERVERNAME>/front/login/index/login/访问。
                        http://<SERVERNAME>/index.php/login/index/login也可以访问
页面模板中有这样一个AJAX请求,需要调用memberstatus()方法。
                     $.ajax({

url      : '__APP__/login/index/member_status',      //问题:如何调用该方法

datatype : 'json',

type     : 'post',

哎,怎么调试也不对
盼各位大侠帮忙!!!

作者: comeon2122   发布时间: 2011-09-22

Index/memberstatus

作者: yangweijie   发布时间: 2011-09-23