Guest User

Untitled

a guest
Apr 25th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. $.ajax({
  2. url: '/url',
  3. method: 'GET',
  4. dataType: "json",
  5. success: function (r) {
  6. console.log(r);
  7. },
  8. })
  9.  
  10. <?php
  11. namespace DrupalcustomController;
  12. class CustomController {
  13.  
  14. public function search(){return 'test';}
  15. }
  16.  
  17. custom_search:
  18. path: /url
  19. defaults:
  20. _controller: DrupalcustomControllerCustomController::search
  21. _title: 'Get List'
  22. requirements:
  23. _permission: 'access content'
Add Comment
Please, Sign In to add comment