arnouxor/ajaxosor

This package is abandoned and no longer maintained. The author suggests using the arnouxor/alienosor package instead.
There is no license information available for the latest version (v2.0.8) of this package.

Make your Codeigniter calls beautiful

Installs: 222

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 2

Type: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

Optimize your ajax' calls with CodeIgniter

Installation

Load the third party library

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

Utilisation

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")]
        ));
    }