arnouxor/ajaxosor

此包已被弃用,不再维护。作者建议使用 arnouxor/alienosor 包。
此包的最新版本(v2.0.8)没有可用的许可信息。

让您的Codeigniter调用变得美观

安装: 222

依赖: 0

建议者: 0

安全性: 0

星标: 1

关注者: 2

分支: 2

类型:codeigniter-third-party

v2.0.8 2017-05-02 09:45 UTC

This package is not auto-updated.

Last update: 2017-05-30 08:32:30 UTC


README

使用CodeIgniter优化ajax调用

安装

加载第三方库

$this->load->add_package_path(APPPATH . 'third_party/alienosor');
$this->load->library('alienosor');
$this->load->remove_package_path(APPPATH . 'third_party/alienosor');

使用方法

php
   public function ajax_search()
    {
         $config = array(
            array('field' => 'searchText', 'label' => '', 'rules' => 'trim|required|integer'),
        );

        $this->alienosor->process($config, array(
            ["type" => "library", "file" => "myfirst_lib", "method" => "method1", "params" => array("searchText")],
            ["type" => "model", "file" => "myfirst_model", "method" => "method2", "params" => array("searchText", "__LAST_RESULT", "mycustomvariable")]
        ));
    }