php - How to get private variable from I18n yii? -
I have problems with multi languages from yii.
I want the administrator to have any language in my system
Therefore, I want all the country and region code languages to be This means that I will display a dropdown list. There are languages of all names in it when I select any language, it will generate automatic area code. Ex: I have selected English, it will generate automatic area code en . I tried This is a code from classicalclass: And here is the code view that I said: If I have private folder parsing folder names from the directory names <$ P> It is better to increase the classroom and copy the entire contents (_data are private, so you can not access it). i18n
yii Need to get from
$ languages = Yii :: app () - & gt; Locale-> _data; to get an array but because the variable
$ _ data is private .
class increases the CLocale CComponent {public static $ data path; Private $ _id; Private $ _data;
$ languages = Yii :: app () - & gt; Locale-> _data; Var_dump ($ languages ['language']);
$ _ data; Change the public $ _Data from ; This will remove the result but it is originally from yii, so I can not change it.
if ( $ handle = Opendir ( '/ path / to / files')) {While (false! == ($ entry = Reddir ($ handle))) {echo "$ entry \ n"; } Close ($ handle); }
Comments
Post a Comment