ThemePostsController.php 923 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
  5. * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
  6. *
  7. * Licensed under The MIT License
  8. * Redistributions of files must retain the above copyright notice.
  9. *
  10. * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
  11. * @link https://cakephp.org CakePHP(tm) Project
  12. * @since 3.0.0
  13. * @license https://opensource.org/licenses/mit-license.php MIT License
  14. */
  15. namespace TestApp\Controller;
  16. use Cake\Controller\Controller;
  17. class ThemePostsController extends Controller
  18. {
  19. /**
  20. * index method
  21. *
  22. * @return void
  23. */
  24. public function index()
  25. {
  26. $this->set('testData', 'Some test data');
  27. $test2 = 'more data';
  28. $test3 = 'even more data';
  29. $this->set(compact('test2', 'test3'));
  30. }
  31. }