Base for a static organization website

DebugKitTestController.php 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. /**
  3. * DebugKit TestController of test_app
  4. *
  5. * PHP 5
  6. *
  7. * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
  8. * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
  9. *
  10. * Licensed under The MIT License
  11. * Redistributions of files must retain the above copyright notice.
  12. *
  13. * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
  14. * @link http://cakephp.org CakePHP(tm) Project
  15. * @since DebugKit 0.1
  16. * @license http://www.opensource.org/licenses/mit-license.php MIT License
  17. **/
  18. /**
  19. * Class DebugKitTestController
  20. *
  21. * @since DebugKit 0.1
  22. */
  23. class DebugKitTestController extends Controller {
  24. /**
  25. * Mame of the Controller
  26. *
  27. * @var string
  28. */
  29. public $name = 'DebugKitTest';
  30. /**
  31. * Uses no Models
  32. *
  33. * @var array
  34. */
  35. public $uses = array();
  36. /**
  37. * Uses only DebugKit Toolbar Component
  38. *
  39. * @var array
  40. */
  41. public $components = array('DebugKit.Toolbar');
  42. /**
  43. * Return Request Action Value
  44. *
  45. * @return string
  46. */
  47. public function request_action_return() {
  48. $this->autoRender = false;
  49. return 'I am some value from requestAction.';
  50. }
  51. /**
  52. * Render Request Action
  53. */
  54. public function request_action_render() {
  55. $this->set('test', 'I have been rendered.');
  56. }
  57. }