phpfox ajax return 空
phpfox ajax return empty
我在使用 ajax 调用时没有收到任何数据,如果没有 ajax 或者我在 ajax.
中没有发送任何参数,它也可以正常工作
ajax 的代码如下
$(this).ajaxCall('blog.tagsSearch','keyword='+tags+'&encode=1&zipcode=LS11%206AU&rangevaluefrom=3&rangetype=0&view=my','GET');
<?php
Phpfox::getComponent('blog.index', array(), 'controller');
$this->html('.column_wrapper', $this->getContent(false));
?>
请检查里面\module\blog\include\component\ajax\ajax.class.php
有function tagsSearch(){ }
定义
class Blog_Component_Ajax_Ajax extends Phpfox_Ajax
{
// ... other codes
public function tagsSearch(){
// ... codes for tag search
}
// ... more codes
}
我在使用 ajax 调用时没有收到任何数据,如果没有 ajax 或者我在 ajax.
中没有发送任何参数,它也可以正常工作ajax 的代码如下
$(this).ajaxCall('blog.tagsSearch','keyword='+tags+'&encode=1&zipcode=LS11%206AU&rangevaluefrom=3&rangetype=0&view=my','GET');
<?php
Phpfox::getComponent('blog.index', array(), 'controller');
$this->html('.column_wrapper', $this->getContent(false));
?>
请检查里面\module\blog\include\component\ajax\ajax.class.php
有function tagsSearch(){ }
定义
class Blog_Component_Ajax_Ajax extends Phpfox_Ajax
{
// ... other codes
public function tagsSearch(){
// ... codes for tag search
}
// ... more codes
}