You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`
TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, array given in /Volumes/macintosh-hd/workspace/php_space/vendor/schmunk42/yii2-giiant/src/helpers/SaveForm.php:60
Stack trace:
#0 /Volumes/macintosh-hd/workspace/php_space/YiiSpace/vendor/schmunk42/yii2-giiant/src/helpers/SaveForm.php(60): method_exists(Array, 'getBasePath')
`
seems call method on an array !
after minor modify ,it is ok.
foreach (\Yii::$app->modules as $moduleId => $module) { /* * get module base path */ if (!is_array($module) && method_exists($module, 'getBasePath')) { $basePath = $module->getBasePath(); } else {
the $module can be an array config .so check it first . or you can use is_object ^_^
The text was updated successfully, but these errors were encountered:
`
TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, array given in /Volumes/macintosh-hd/workspace/php_space/vendor/schmunk42/yii2-giiant/src/helpers/SaveForm.php:60
Stack trace:
#0 /Volumes/macintosh-hd/workspace/php_space/YiiSpace/vendor/schmunk42/yii2-giiant/src/helpers/SaveForm.php(60): method_exists(Array, 'getBasePath')
`
seems call method on an array !
after minor modify ,it is ok.
foreach (\Yii::$app->modules as $moduleId => $module) { /* * get module base path */ if (!is_array($module) && method_exists($module, 'getBasePath')) { $basePath = $module->getBasePath(); } else {
the $module can be an array config .so check it first . or you can use is_object ^_^
The text was updated successfully, but these errors were encountered: