Blogmer beta 2


Settings_model

Settings_model is keep track of all settings. It contains all functions related to settings. Let's discuss each function one by one.

Beta:  This is an Beta model. It can be changed anytime.

Functions:

Settings_model Function Reference

$this->Settings_model->SaveGeneralSettings()

Saves the general settings into database.

$this->Settings_model->SaveAdvancedSettings()

Saves the advanced settings into database.

$this->Settings_model-> SaveThemeSettings($theme_folder,$theme_name)

Saves current theme name and folder name into database.This is used for theming purpose.

$this->Settings_model->BlogSettings()

On startup it loads the all settings into blog.

$this->Settings_model->reload_settings()

You need to delete old settings and load again then use this function. Delete old session and create new session for current user.

Final Collection

$this->load->model('Settings_model');
$this->Settings_model->SaveGeneralSettings();
$this->Settings_model->SaveAdvancedSettings()
$this->Settings_model-> SaveThemeSettings($theme_folder,$theme_name);
$this->Settings_model->BlogSettings();
$this->Settings_model->reload_settings();