public function gen_models() { Doo::loadCore('db/DooModelGen'); DooModelGen::genMySQL(); }
public function gen_model() { Doo::loadCore('db/DooModelGen'); global $dbconfig; foreach ($dbconfig as $key => $value) { $path = Doo::conf()->SITE_PATH . Doo::conf()->PROTECTED_FOLDER . 'model/' . $key; if (!is_dir($path)) { mkdir($path); } $path .= '/'; Doo::db()->setDb($dbconfig, $key); Doo::db()->reconnect($key); DooModelGen::genMySQL($comments = true, $vrules = true, $extends = 'DooModel', $createBase = true, $baseSuffix = 'Base', $useAutoload = false, $chmod = null, $path, $dbname = ucfirst($key)); //exit; } }