App

Options
@return string the route of the default controller, action or module. Defaults to 'site'.
default :
'site'
The application-wide layout. Defaults to 'main' (relative to {@link getLayoutPath layoutPath}). If this is false, then no layout will be used.
default (mixed) :
'main'
Mapping from controller ID to controller configurations. Each name-value pair specifies the configuration for a single controller. A controller configuration can be either a string or an array. If the former, the string should be the class name or {@link YiiBase::getPathOfAlias class path alias} of the controller. If the latter, the array must contain a 'class' element which specifies the controller's class name or {@link YiiBase::getPathOfAlias class path alias}. The rest name-value pairs in the array are used to initialize the corresponding controller properties. For example,
array(
  'post'=>array(
     'class'=>'path.to.PostController',
     'pageTitle'=>'something new',
  ),
  'user'=>'path.to.UserController',,
)
Note, when processing an incoming request, the controller map will first be checked to see if the request can be handled by one of the controllers in the map. If not, a controller will be searched for under the {@link getControllerPath default controller path}.
default (array) :
array()
The configuration specifying a controller which should handle all user requests. This is mainly used when the application is in maintenance mode and we should use a controller to handle all incoming requests. The configuration specifies the controller route (the first element) and GET parameters (the rest name-value pairs). For example,
array(
    'offline/notice',
    'param1'=>'value1',
    'param2'=>'value2',
)
Defaults to null, meaning catch-all is not effective.
default (array) :
null
Namespace that should be used when loading controllers. Default is to use global namespace. @since 1.1.11
default (string) :
null
The application name. Defaults to 'My Application'.
* default (string) :
'My Application'
The charset currently used for the application. Defaults to 'UTF-8'.
default (string) :
'UTF-8'
The language that the application is written in. This mainly refers to the language that the messages and view files are in. Defaults to 'en_us' (US English).
default (string) :
'en_us'
The IDs of the application components that should be preloaded.
* default (array) :
array()
The theme name
default (string) :
null
The directory that contains the controller classes. @throws CException if the directory is invalid
default (string) :
null
The root directory of view files. @throws CException if the directory does not exist.
default (string) :
null
The root directory of system view files. @throws CException if the directory does not exist.
default (string) :
null
The root directory of layout files. @throws CException if the directory does not exist.
default (string) :
null
Sets the unique identifier for the application. the unique identifier for the application.
default (string) :
null
Sets the root directory of the application. This method can only be invoked at the begin of the constructor. the root directory of the application. @throws CException if the directory does not exist.
* default (string) :
null
Sets the directory that stores runtime files. the directory that stores runtime files. @throws CException if the directory does not exist or is not writable
default (string) :
null
Sets the root directory that holds all third-party extensions. the directory that contains all third-party extensions.
default (string) :
null
Specifies which language the application is targeted to. This is the language that the application displays to end users. If set null, it uses the {@link sourceLanguage source language}. Unless your application needs to support multiple languages, you should always set this language to null to maximize the application's performance. the user language (e.g. 'en_US', 'zh_CN'). If it is null, the {@link sourceLanguage} will be used.
default (string) :
null
Sets the time zone used by this application. This is a simple wrapper of PHP function date_default_timezone_set(). the time zone used by this application. @see http://php.net/manual/en/function.date-default-timezone-set.php
default (string) :
null
Sets the directory that contains the locale data. the directory that contains the locale data. @since 1.1.0
default (string) :
null
The homepage URL
default (string) :
null
Sets user-defined parameters. user-defined parameters. This should be in name-value pairs.
* default (array) :
null
Sets the directory that contains the application modules. the directory that contains the application modules. @throws CException if the directory is invalid
default (string) :
null
Sets the aliases that are used in the module. list of aliases to be imported
* default (array) :
null
Defines the root aliases. list of aliases to be defined. The array keys are root aliases, while the array values are paths or aliases corresponding to the root aliases. For example,
array(
   'models'=>'application.models',              // an existing alias
   'extensions'=>'application.extensions',      // an existing alias
   'backend'=>dirname(__FILE__).'/../backend',  // a directory
)
default (array) :
null
Free Web Hosting