简体   繁体   中英

Using the Codeigniter DB_forge Class as a standalone

I'd like to use the following class from codeigniter: DB_forge.php (or any other class that can create and edit tables)

Now, I know just including the class in my procedural php script won't work, as this class uses CI's database class. Can someone walk me through what I have to do in order to be able to use this class.

Thanks!

I haven't used this, but it looks like someone crafted a standalone version of CI's ActiveRecord + DBforge based on the 1.7.1 version:

http://www.documentopia.com/downloads/

I don't necessarily endorse this, but it might be worth a shot - I could not find anything else, and I thought I saw this question here before but I cannot find that either.

Depending on your needs, you may be able to just use a stripped down CI installation.

There are a lot of suggestions here that may help as well:

Useful PHP database class

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM