简体   繁体   English

单独使用 Codeigniter DB_forge Class

[英]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)我想使用 codeigniter 中的以下 class : DB_forge.php (或任何其他可以创建和编辑表的 ZA2F2ED4F8EBC406C1DBB4 表)

Now, I know just including the class in my procedural php script won't work, as this class uses CI's database class.现在,我知道在我的程序 php 脚本中仅包含 class 将不起作用,因为此 class 使用 CI 的数据库 ZA42F2ED4F8EABCC6 Can someone walk me through what I have to do in order to be able to use this class.有人可以告诉我我必须做什么才能使用这个 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:我没用过这个,但看起来有人在 1.7.1 版本的基础上制作了 CI 的 ActiveRecord + DBforge 的独立版本:

http://www.documentopia.com/downloads/ 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.根据您的需要,您可以只使用精简的 CI 安装。

There are a lot of suggestions here that may help as well:这里有很多建议也可能有所帮助:

Useful PHP database class 有用的 PHP 数据库 class

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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