SomePagesController.php 1.2 KB

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