| @@ 59-65 (lines=7) @@ | ||
| 56 | * @param View $View |
|
| 57 | * @param array $config |
|
| 58 | */ |
|
| 59 | public function __construct(View $View, array $config = []) |
|
| 60 | { |
|
| 61 | parent::__construct($View, $config); |
|
| 62 | $this->_configWrite('btnPref', Configure::read('Cms.btnPref')); |
|
| 63 | $this->_configWrite('iconPref', Configure::read('Cms.iconPref')); |
|
| 64 | $this->_configWrite('classPrefix', Configure::read('Cms.classPrefix')); |
|
| 65 | } |
|
| 66 | ||
| 67 | /** |
|
| 68 | * Create html form. |
|
| @@ 52-59 (lines=8) @@ | ||
| 49 | * @param View $View |
|
| 50 | * @param array $config |
|
| 51 | */ |
|
| 52 | public function __construct(View $View, array $config = []) |
|
| 53 | { |
|
| 54 | parent::__construct($View, $config); |
|
| 55 | $this->_configWrite('btnPref', Configure::read('Cms.btnPref')); |
|
| 56 | $this->_configWrite('iconPref', Configure::read('Cms.iconPref')); |
|
| 57 | $this->_configWrite('classPrefix', Configure::read('Cms.classPrefix')); |
|
| 58 | $this->_configWrite('templates.icon', '<i class="{{class}}"{{attrs}}></i>'); |
|
| 59 | } |
|
| 60 | ||
| 61 | /** |
|
| 62 | * Create icon element. |
|