Bin will be removed on June 1, 2014 in favor of http://gist.github.com. Please save all your pastes before then. So long, and thanks for all the fish!×
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
/**
 * Add your application-wide methods in the class below, your helpers
 * will inherit them.
 */
class AppHelper extends Helper {
/**
 * You can use this to override the core tags that
 * are used in the FormHelper. Passing a param with the
 * name of the file you want to load, only tags you define
 * will be merged into the tag used in the FormHelper
 */
    function __construct() {
        parent::__construct();
/**
 * without a param will load app/config/tags.php to override the core
 * only tags you define will
 */
        $this->loadConfig();
/**
 * with param will add tags from app/config/mytags.php to override the core
 */
        $this->loadConfig('mytags');
    }
}
?>