Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 781 Bytes

config.md

File metadata and controls

18 lines (11 loc) · 781 Bytes

Configuration

As outlined in Getting Started → Configuration, the configuration settings for an esoTalk installation are stored in the core/config.defaults.php and config/config.php files, with values defined in the latter taking precedence.

The esoTalk framework provides ways to easily access the values of these configuration settings, and to write new values to the installation's config/config.php file.

Accessing A Configuration Value Or Returning A Default

$title = C("esoTalk.forumTitle", "Default Title");

The C() function is an alias for ET::config().

Writing New Configuration Values

ET::writeConfig(array(
	"esoTalk.forumTitle" => "New Title",
	"esoTalk.language" => "Pirate"
));