示例#1
0
 public static function generate(array $variables, $connection, $destination)
 {
     self::$variables = $variables;
     self::$connection = $connection;
     self::$destination = $destination;
     if (!self::controller()) {
         return false;
     }
     if (!self::model()) {
         return false;
     }
     if (!self::views()) {
         return false;
     }
     return true;
 }