Advertisement
Guest User

Untitled

a guest
Jul 5th, 2015
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. namespace App\Controller;
  2.  
  3. class MyCustomersController extends AppController
  4. {
  5. public function initialize()
  6. {
  7. parent::initialize();
  8. $this->loadComponent('RequestHandler');
  9. }
  10.  
  11. public function customers()
  12. {
  13. $customers['id'] = '123';
  14. $this->set('customers', $customers);
  15. $this->set('_serialize', ['customers']);
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement