Note that there are some explanatory texts on larger screens.

plurals
  1. POYii set language to directory protected/messages in components from config but not work
    primarykey
    data
    text
    <p>I have Yii project and change my language in config/main.php to fa_ir, and set components basePath = protected/messages but don't changed basePath, yet is selected fa_ir from framework directory !!!</p> <p>my project main.php code :</p> <p>return.array(</p> <pre><code>'basePath'=&gt;dirname(__FILE__).DIRECTORY_SEPARATOR.'..', 'name'=&gt;'New web site', 'defaultController'=&gt;'site', //'timezone'=&gt;'Asia/Tehran', 'language'=&gt;'fa_ir', // preloading 'log' component 'preload'=&gt;array('log'), // autoloading model and component classes 'import'=&gt;array( 'application.models.*', 'application.components.*', 'application.extensions.*', ), 'modules'=&gt;array( // uncomment the following to enable the Gii tool 'gii'=&gt;array( 'class'=&gt;'system.gii.GiiModule', 'password'=&gt;'123', // If removed, Gii defaults to localhost only. Edit carefully to taste. 'ipFilters'=&gt;array('127.0.0.1','::1'), ), ), // application components 'components'=&gt;array( 'user'=&gt;array( // enable cookie-based authentication 'allowAutoLogin'=&gt;true, ), 'messages'=&gt;array( 'basePath'=&gt;Yiibase::getPathOfAlias('application.messages'), ), // uncomment the following to enable URLs in path-format 'urlManager'=&gt;array( 'urlFormat'=&gt;'path', 'showScriptName'=&gt;false, 'caseSensitive'=&gt;false, 'rules'=&gt;array( '&lt;controller:\w+&gt;/&lt;id:\d+&gt;'=&gt;'&lt;controller&gt;/view', '&lt;controller:\w+&gt;/&lt;action:\w+&gt;/&lt;id:\d+&gt;'=&gt;'&lt;controller&gt;/&lt;action&gt;', '&lt;controller:\w+&gt;/&lt;action:\w+&gt;'=&gt;'&lt;controller&gt;/&lt;action&gt;', ), ), </code></pre> <p>and ... </p> <p>So directory files is : protect/message/fa_ir/yii.php and zii.php</p> <p>I am very grateful from respondents.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload