SomePagesController.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. /**
  3. * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
  4. * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
  5. *
  6. * Licensed under The MIT License
  7. * Redistributions of files must retain the above copyright notice.
  8. *
  9. * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
  10. * @link http://cakephp.org CakePHP(tm) Project
  11. * @since 3.0.0
  12. * @license http://www.opensource.org/licenses/mit-license.php MIT License
  13. */
  14. namespace TestApp\Controller;
  15. use Cake\Controller\Controller;
  16. use Cake\Network\Response;
  17. /**
  18. * SomePagesController class
  19. *
  20. */
  21. class SomePagesController extends Controller {
  22. /**
  23. * display method
  24. *
  25. * @param mixed $page
  26. * @return void
  27. */
  28. public function display($page = null) {
  29. }
  30. /**
  31. * index method
  32. *
  33. * @return void
  34. */
  35. public function index() {
  36. return true;
  37. }
  38. /**
  39. * Test method for returning responses.
  40. *
  41. * @return \Cake\Network\Response
  42. */
  43. public function responseGenerator() {
  44. $this->response->body('new response');
  45. return $this->response;
  46. }
  47. protected function _fail() {
  48. }
  49. }