arnouxor / ajaxosor
Make your Codeigniter calls beautiful
Installs: 222
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 2
Type:codeigniter-third-party
Requires
- php: >=5.6.0
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")]
));
}