controllers/Settings.php
protected function setDataEditSettings()
    {
        $header = $this->getData('settings.header');

        if (is_array($header)) {

            $string = '';
            foreach ($header as $key => $value) {
                $string .= "$key $value" . PHP_EOL;
            }

            $this->setData('settings.header', trim($string));
        }
    }
protected function setDataEditSettings()
    {
        $header = $this->getData('settings.header');

        if (is_array($header)) {

            $string = '';
            foreach ($header as $key => $value) {
                $string .= "$key $value" . PHP_EOL;
            }

            $this->setData('settings.header', trim($string));
        }
    }
protected function setDataEditSettings ( ) { $ header = $ this -> getData ( 'settings.header' ) ; if ( is_array ( $ header ) ) { $ string = '' ; foreach ( $ header as $ key => $ value ) { $ string .= "$key $value" . PHP_EOL ; } $ this -> setData ( 'settings.header' , trim ( $ string ) ) ; } }
Prepare data before rendering
Prepare data before rendering