09.26 php saved
PhpNut
Tags add more
FormHelper, form tags, override tags and tags.ini  
Note
PhpNut did not leave a note
  1. <?php
  2. /**
  3. * Add your application-wide methods in the class below, your helpers
  4. * will inherit them.
  5. */
  6. class AppHelper extends Helper {
  7. /**
  8. * You can use this to override the core tags that
  9. * are used in the FormHelper. Passing a param with the
  10. * name of the file you want to load, only tags you define
  11. * will be merged into the tag used in the FormHelper
  12. */
  13.     function __construct() {
  14.         parent::__construct();
  15. /**
  16. * without a param will load app/config/tags.php to override the core
  17. * only tags you define will
  18. */ 
  19.         $this->loadConfig();
  20. /**
  21. * with param will add tags from app/config/mytags.php to override the core
  22. */
  23.         $this->loadConfig('mytags');
  24.     }
  25. }
  26. ?>
Parsed in 0.018 seconds, using GeSHi 1.0.7.14

Modify this Paste