yii Setting in your main.php file How to set main.php file in YII Framework V1.


In the versions of YII Framework Version 1.

You will set your main.php File.

File Path : application_name/protected/config/main.php

return array(
    // Set Application Name
    'name'              => "Applicaiton Name",
    // Set Default Controller
    'defaultController' => 'site/login',
    // Set Language
    'language'          => 'in',
    // Set Language for messages and views
    'sourceLanguage'    => 'en',
    // Set Time Zone
    'timeZone' => 'Asia/Calcutta',
    //Charset to use

    // preloading 'log' component
    //application-level parameters that can be accessed
    'params'=> array(
        $documentUrl = $baseUrl,    // Document URL
        $documentPath = $_SERVER['DOCUMENT_ROOT'] . '/', // Document Path

List of Supported Time Zones - PHP