0

My question is do widgets get in on any custom libraries that I add to a custom module? What I want to achieve is create a custom module and I want to add ability to generate pdf documents so I was thinking of making the pdf generation a widget as I would like to use that on another site. If I made it a module, would I be able to share the resources between my pdfmodule and any other module? Sometimes I wish there was a book written on pyrocms that clarifies these issues.

4

1 回答 1

0

抱歉,花了一个月的时间才发现这个,但我们通常会在支持论坛上提供帮助,并且不会经常看这里。

所以,交叉加载资源。是的,支持就好了。我们使用 CodeIgniter 的 HMVC 插件,并且经常忘记人们对它的工作原理不太了解。我会为此在文档中添加一些内容,但基本上你只需像这样指定模块名称:

$this->load->library('modulename/libraryname');

希望这可以帮助任何人在未来找到这个。Eagletrophy 可能有点晚了。

于 2012-01-13T01:23:03.813 回答