dov6891 2019-02-26 10:13
浏览 9

API响应提取方法不称为CI

I have bad english, but i hope I can explain you my situation. I have payment controller and two methods.

class payment extends MX_Controller{
    public function __construct(){
        parent::__construct();
        $this->load->model(get_class($this) . "_model", "model");
    }

    public function pay(){
        //Gets form data and sends to payment service
    }

    public function check(){
        //Gets response from payment service and acts according payment                         
        //status
    }
}

First sends data to payment service and second have to do something according payment response scenario.

So in my payment cpanel I wrote this url "htts://my-domain.do/payment/check" for response. The first method works successfully, it sends all needed data, but my second "check()" method does not called.

When I simply write https://my-domain/payment/check it still not working, but when I call like this https://my-domain/index.php/payment/check it works. My .htaccess also configured.

I use CI 3. Is there any one who had the problem like this.

My .htaccess file look like

RewriteEngine On
Options +FollowSymLinks
Options -Indexes
RewriteCond %{SCRIPT_FILENAME} !-d  
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule . index.php [L,QSA]

And in app/config/config.php

$config['index_page'] = '';
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
    • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
    • ¥15 手机接入宽带网线,如何释放宽带全部速度
    • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
    • ¥15 ETLCloud 处理json多层级问题
    • ¥15 matlab中使用gurobi时报错
    • ¥15 这个主板怎么能扩出一两个sata口
    • ¥15 不是,这到底错哪儿了😭
    • ¥15 2020长安杯与连接网探
    • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么