rabin 1 year ago
parent
commit
47a3436823
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/Dever/Project.php

+ 4 - 1
src/Dever/Project.php

@@ -18,8 +18,8 @@ class Project
     }
     public static function register()
     {
+        $file = self::init();
         if (empty(self::$content[DEVER_APP_NAME])) {
-            $file = self::init();
             self::$content[DEVER_APP_NAME] = array('lang' => DEVER_APP_LANG,'path' => DEVER_APP_PATH,'url' => DEVER_APP_HOST);
             self::content($file);
         }
@@ -35,6 +35,9 @@ class Project
     public static function content($file)
     {
         file_put_contents($file, '<?php $project = ' . var_export(self::$content, true) . ';');
+        if (isset(self::$content['manage'])) {
+            \Dever::load('menu', 'manage')->init();
+        }
     }
     public static function read()
     {