Closed glapworth closed 11 years ago
Yes. It was designed with that in mind.
Any tips or examples to show how to use it that way?
merge your $dtColumns
array with $this->DataTable->settings
instead of
$this->DataTable->settings['columns']
like so
$this->DataTable->settings = array('FirstModel' => array('columns' => ....), 'SecondModel' => array('columns' => ...));
The rest looks correct.
On Thu, Jun 13, 2013 at 8:58 AM, glapworth notifications@github.com wrote:
Any tips or examples to show how to use it that way?
— Reply to this email directly or view it on GitHubhttps://github.com/tigrang/cakephp-datatable/issues/32#issuecomment-19401436 .
Wonderful, Thanks :)
I have an application, which has a view that needs to contain two datasets - lets say I have View Customer action in my controller. I want to show all contacts that exist with this customer, but I also wish to show all open support requests for this customer. Both of these models are related customer, but not to each other.
What I tried: In my controller, I put the following code
And in my View, I have :
$js_contact);
$js_call and $js_contact are both arrays containing the settings for each datatable.
Before I carry on with this path, I am just wondering if what I want is possible.
Cheers, Gareth