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
echo'<p><strong>The path to yii framework seems to be incorrect.</strong></p>';
19
-
echo'<p>You need to install Yii framework via composer or adjust the framework path in file <abbr title="' . __FILE__ . '">' . basename(__FILE__) . '</abbr>.</p>';
20
-
echo'<p>Please refer to the <abbr title="' . dirname(__FILE__) . '/README.md">README</abbr> on how to install Yii.</p>';
17
+
18
+
if (!isset($frameworkPath)) {
19
+
$searchPaths = [
20
+
dirname(__FILE__) . '/vendor/yiisoft/yii2',
21
+
dirname(__FILE__) . '/../vendor/yiisoft/yii2',
22
+
];
23
+
foreach($searchPathsas$path) {
24
+
if (is_dir($path)) {
25
+
$frameworkPath = $path;
26
+
break;
27
+
}
28
+
}
29
+
}
30
+
31
+
if (!isset($frameworkPath) || !is_dir($frameworkPath)) {
32
+
$message = "<h1>Error</h1>\n\n"
33
+
. "<p><strong>The path to yii framework seems to be incorrect.</strong></p>\n"
34
+
. '<p>You need to install Yii framework via composer or adjust the framework path in file <abbr title="' . __FILE__ . '">' . basename(__FILE__) . "</abbr>.</p>\n"
35
+
. '<p>Please refer to the <abbr title="' . dirname(__FILE__) . "/README.md\">README</abbr> on how to install Yii.</p>\n";
0 commit comments