codeigniter与PHP报告制作器? [英] codeigniter with PHP Report Maker?

查看:88
本文介绍了codeigniter与PHP报告制作器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人使用这种组合和如何?请详细解释如何使用 PHP Report Maker 与CodeIgniter。感谢。

Has anyone used this combination and how? kindly explain how can I use PHP Report Maker with CodeIgniter. Thanks.

推荐答案

我以前没有使用过PHP Report Maker,但是在Codeigniter中使用过类似的PHP库。

I've not used the PHP Report Maker before but have worked with similar PHP libraries in Codeigniter.

一般来说,你要将类文件添加到你的Libraries文件夹,然后你可以像通常一样加载它们:

Generally you want to add the class files to your Libraries folder and then you can load them as you would normally:

$this->load->library('phpreportmaker');

有时候,如果一个外部库是由一组在不同文件中的类组成的,一个使用PHP的include()的单独库;以加载它们。然后你可以在你的控制器/模型中加载该库。如果你喜欢Codeigniter,这是一个包装器。

Sometimes, if an external library is made up of a set of classes in different files it's nice to write a separate library that uses PHP's include(); to load them all. Then you can just load that library in your controllers/models. This is kind of a "wrapper" if you like for Codeigniter.

将新的包装器中的外部库进行大量的交互,控制器和模型清理和重复代码免费。

It's also nice to put the bulk of the interaction with the external library in your new wrapper to keep your Controllers and Models clean and duplicate code free. If you need to update the external library files you can do so easily, just editing your new library wrapper.

我在这里写了一个类似的答案 - 将phpgrid与codeigniter集成,更详细地说明如何在Codeigniter中正常使用外部库。

I wrote a similar answer here - Integrate phpgrid with codeigniter that explains in more detail how I normally use external libraries in Codeigniter.

这篇关于codeigniter与PHP报告制作器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆