tigrang / cakephp-datatable

JQuery DataTable plugin server-side processing component for CakePHP
47 stars 29 forks source link

Have a $_GET conditions #59

Closed agencefacton closed 9 years ago

agencefacton commented 9 years ago

Hello,

i have no solution to send $this->params to a condition ?

public function beforeFilter() {
    parent::beforeFilter();

    $this->DataTable->settings[$this->modelClass]['conditions'] = array(
        $this->modelClass.'.client_id' => $this->Auth->user('client_id'),
        $this->modelClass.'.status' => ??
    );
tigrang commented 9 years ago

$this->request->query('name_of_field')

http://book.cakephp.org/2.0/en/controllers/request-response.html#CakeRequest::query