1
我已經遷移我的應用程序,我有問題非靜態方法 錯誤500 非靜態方法UFactory :: getModuleAlias()不應該靜態調用非靜態方法UFactory :: getModuleAlias()不應該被靜態調用Uniprogy的Yii
我已經將調試更改爲true defined('YII_DEBUG')或define('YII_DEBUG',true); 然後我得到一個錯誤
非靜態方法UFactory :: getModuleAlias()不應該叫 靜態
/家庭/ tradertrga/WWW/_CRM /框架/ uniprogy /框架/基/ UFactory .PHP(88)
076
077 $alias = '.'.rtrim($alias,'.');
078 $paths = explode('.',substr($alias,0,strrpos($alias,'.')));
079 $itemName = substr($alias,strrpos($alias,'.')+1);
080
081 $className = '';
082
083 $id = explode('/',$module->getId());
084 $id = implode('',array_map('ucfirst',$id));
085 $className = $id . $className;
086
087 $path = 'application.modules.'
088 . str_replace('.','.modules.',self::getModuleAlias($module)).'.'.$type;
089 if(count($paths))
090 {
091 $path.= implode('.', $paths);
092 $className.= implode('', array_map('ucfirst',$paths));
093 }
094 $letter = strtoupper(substr($type,0,1));
095 $path.= '.'.$letter.$className.ucfirst($itemName);
096
097 self::saveToCache($key,array('module' => self::getModuleAlias($module),
098 'path' => $path));
099 }
任何種類的幫助將是appreceate,我已經陷在這個問題上。
謝謝
https://github.com/khoa-le/uniprogy/blob/master/framework/uniprogy/framework/base/UFactory.php#L191好像你有舊版本或smthing。 – ineersa