Closed emnu closed 7 years ago
Yes. This is standard component config handling. See http://book.cakephp.org/3.0/en/controllers/components.html#configuring-components
thank you for your response, can it being override on the fly? such as
$data = $this->DataTables->find('Menus', 'threaded', [
'length' => 100,
]);
nevermind, i found it.
$this->DataTables->config('length', 100);
anyway, thank you.
Sorry for not replying earlier, I was sick. Good to know you could resolve your question!
Please note that DataTables might send a desired length in the request which will then overwrite the configuration value: https://github.com/ypnos-web/cakephp-datatables/blob/master/src/Controller/Component/DataTablesComponent.php#L80
is there any way i can override length/limit value in