Base for a static organization website

PagesController.php 819B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * Static content controller.
  4. *
  5. * This file will render views from views/pages/
  6. *
  7. * @link http://cakephp.org CakePHP(tm) Project
  8. * @package app.Controller
  9. * @since CakePHP(tm) v 0.2.9
  10. */
  11. App::uses('AppController', 'Controller');
  12. /**
  13. * Static content controller
  14. *
  15. * Override this controller by placing a copy in controllers directory of an application
  16. *
  17. * @package app.Controller
  18. * @link http://book.cakephp.org/2.0/en/controllers/pages-controller.html
  19. */
  20. class PagesController extends AppController {
  21. public $uses = array();
  22. public function home() {}
  23. public function search() {
  24. $this->set('query', $this->request->query['query']);
  25. }
  26. public function about() {}
  27. public function mission() {}
  28. public function news() {}
  29. public function contact() {}
  30. }