public function showSettings()
    {
        // Get dependencies
        $settingMapper = ($this->container->dataMapper)('SettingMapper');
        $json = $this->container->json;

        // Fetch settings from database
        $allSettings = $settingMapper->findSiteSettings();

        // Fetch custom settings
        $jsonFilePath = ROOT_DIR . "structure/definitions/customSettings.json";
        if (null === $customSettings = $json->getJson($jsonFilePath, 'setting')) {
            $this->setAlert('danger', 'Custom Settings Error', $json->getErrorMessages());
        } else {
            // Merge saved settings with custom settings
            $allSettings = $this->mergeSettings($allSettings, $customSettings->settings);
        }

        return $this->render('editSettings.html', $allSettings);
    }
public function showSettings()
    {
        // Get dependencies
        $settingMapper = ($this->container->dataMapper)('SettingMapper');
        $json = $this->container->json;

        // Fetch settings from database
        $allSettings = $settingMapper->findSiteSettings();

        // Fetch custom settings
        $jsonFilePath = ROOT_DIR . "structure/definitions/customSettings.json";
        if (null === $customSettings = $json->getJson($jsonFilePath, 'setting')) {
            $this->setAlert('danger', 'Custom Settings Error', $json->getErrorMessages());
        } else {
            // Merge saved settings with custom settings
            $allSettings = $this->mergeSettings($allSettings, $customSettings->settings);
        }

        return $this->render('editSettings.html', $allSettings);
    }
public function showSettings ( ) { // Get dependencies $ settingMapper = ( $ this -> container -> dataMapper ) ( 'SettingMapper' ) ; $ json = $ this -> container -> json ; // Fetch settings from database $ allSettings = $ settingMapper -> findSiteSettings ( ) ; // Fetch custom settings $ jsonFilePath = ROOT_DIR . "structure/definitions/customSettings.json" ; if ( null === $ customSettings = $ json -> getJson ( $ jsonFilePath , 'setting' ) ) { $ this -> setAlert ( 'danger' , 'Custom Settings Error' , $ json -> getErrorMessages ( ) ) ; } else { // Merge saved settings with custom settings $ allSettings = $ this -> mergeSettings ( $ allSettings , $ customSettings -> settings ) ; } return $ this -> render ( 'editSettings.html' , $ allSettings ) ; }
Manage Site Settings

List all site configuration settings to bulk edit
Manage Site Settings