In general, there are 2 servers, on one everything works and on the other peaks ... well, in general, the essence of the problem:
On the local host (I run it through OpenServer, I did not touch the settings of the puff, puff 5.3, Yii 1.1.17) I have a file Locale.php in which the class is declared
class Locale extends CLocale. In this class there is a static getInstance() method to which I refer from the method of another class NFormatter::getLocale()
public static function getLocale() { CLocale::$dataPath = dirname(__FILE__).DIRECTORY_SEPARATOR.'data'; $locale = 'ru_ua';//Yii::app()->language; var_dump(Locale::getInstance($locale)); } On the local machine, the getInstance method is visible and returns the data I need, and on the hosting an error accesses the nonexistent method. For debug created object of class, made dump
$loc = new Locale($locale); get_class($loc) var_dump(get_object_vars($loc)); var_dump(method_exists($loc,'getInstance')); As soon as I upload to the hosting, the dump is empty and method_exists returns false, although get_class($loc) shows the class Locale. That is, the class is visible here and there, but on the hosting for some reason there is no access to its methods. I suspect that this is all the same server settings, which is very strange.
var_dump(get_class_methods(get_class($loc)));? - E_parray(58) { [0]=> string(11) "__construct" [1]=> string(4) "init" [2]=> string(15) "setConfigNumber" [3]=> string(11) "getInstance"+ CLocale parent class methods, on the hosting the same dump returned only CLocale parent class methods. - qwezert