按如下所示加载Forge类: $this->load->dbforge() 您还可以将另一个数据库对象传递给DBForge加载程序,以防您要管理的数据库不是默认数据库: $this->myforge=$
'Nodirectscriptaccessallowed');classMigration_Add_blogextendsCI_Migration{publicfunctionup(){$this->dbforge
/database/index)sectionformoreinfo. dbforge([$db=NULL[,$return=FALSE]]) 参数:$db(object)-数据库对象$return(bool