Base for a static organization website

HtmlExtHelper.php 533B

12345678910111213141516171819202122232425
  1. <?php
  2. App::uses('HtmlHelper', 'View/Helper/');
  3. /**
  4. * Application helper
  5. *
  6. * Add your application-wide methods in the class below, your helpers
  7. * will inherit them.
  8. *
  9. * @package app.View.Helper
  10. */
  11. class HtmlExtHelper extends HtmlHelper {
  12. private $activeClass = 'active';
  13. public function currentPage($action) {
  14. return ($this->request->params['action'] == $action ? $this->activeClass : '');
  15. }
  16. public function simpleURL($action) {
  17. return $this->url(array('controller' => 'pages', 'action' => $action));
  18. }
  19. }