Skip to content
This repository has been archived by the owner on Dec 9, 2022. It is now read-only.

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
cnizzardini committed Mar 27, 2014
1 parent f5d89f6 commit b7a980b
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,21 +79,6 @@ With ContainableBehavior:
$this->set('_serialize','response');
```

With CONCAT Fields. Note once a CONCAT is used we must tell the component the order the fields should be in.
```php
$this->paginate = array(
'fields' => array('Field.A','Field.B'),
'link' => array(
'AssocModel' => array(
'fields' => array('CONCAT(User.first_name," ",User.last_name) as name')
)
)
);
$this->DataTable->fields = array('Field.A','Field.B','0.name');
$this->set('response',$this->DataTable->getResponse());
$this->set('_serialize','response');
```

If you don't use Cakes built in REST code you can ofcourse just do the following to get the response data:
```php
$this->autoRender = false;
Expand Down

0 comments on commit b7a980b

Please sign in to comment.