简体   繁体   English

CodeIgniter third_party

[英]CodeIgniter third_party

This was posted 8 months ago: Codeigniter 2.0 third_party folder . 这是8个月前发布的: Codeigniter 2.0 third_party文件夹 This was posted almost a year ago: http://philsturgeon.co.uk/blog/2010/04/codeigniter-packages-modules . 这是大约一年前发布的: http : //philsturgeon.co.uk/blog/2010/04/codeigniter-packages-modules

I'm wondering if anything significant has changed since those posts. 我想知道自从这些帖子以来是否有重大变化。 Particularly, is it possible to share resources between application packages? 特别是,是否有可能在应用程序包之间共享资源? If not, what are my options? 如果没有,我有什么选择? HMVC? HMVC?

It's not possible in the way HMVC is described, but it is possible with CI to share ressources. HMVC的描述方式是不可能的,但CI可以共享资源。

Take a look at the bottom of this documentation page - the part labeled Application "Packages" . 看一下本文档页面的底部-标为Application“ Packages”的部分。

The documentation describes the use of the third_party folder in your application, but instead you could point the add_package_path() method argument to any folder you'd wish. 该文档描述了应用程序中third_party文件夹的使用,但是您可以将add_package_path()方法参数指向您想要的任何文件夹。

But, it has it's limitations (which can be seen on the same page). 但是,它有局限性(可以在同一页面上看到)。

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

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