| @@ 65-71 (lines=7) @@ | ||
| 62 | * @param View $View |
|
| 63 | * @param array $config |
|
| 64 | */ |
|
| 65 | public function __construct(View $View, array $config = []) |
|
| 66 | { |
|
| 67 | parent::__construct($View, $config); |
|
| 68 | $this->_configWrite('btnPref', Configure::read('Cms.btnPref')); |
|
| 69 | $this->_configWrite('iconPref', Configure::read('Cms.iconPref')); |
|
| 70 | $this->_configWrite('classPrefix', Configure::read('Cms.classPrefix')); |
|
| 71 | } |
|
| 72 | ||
| 73 | /** |
|
| 74 | * Creates a `<button>` tag. |
|
| @@ 67-74 (lines=8) @@ | ||
| 64 | * @param View $View |
|
| 65 | * @param array $config |
|
| 66 | */ |
|
| 67 | public function __construct(View $View, array $config = []) |
|
| 68 | { |
|
| 69 | parent::__construct($View, $config); |
|
| 70 | $this->_configWrite('btnPref', Configure::read('Cms.btnPref')); |
|
| 71 | $this->_configWrite('iconPref', Configure::read('Cms.iconPref')); |
|
| 72 | $this->_configWrite('classPrefix', Configure::read('Cms.classPrefix')); |
|
| 73 | $this->_configWrite('templates.icon', '<i class="{{class}}"{{attrs}}></i>'); |
|
| 74 | } |
|
| 75 | ||
| 76 | /** |
|
| 77 | * Creates a link element for CSS stylesheets. |
|