开发者

How do I load a view from a specific (shared) path in CodeIgniter?

开发者 https://www.devze.com 2023-01-06 05:10 出处:网络
I\'m using CodeIgniter for several projects. What I haven\'t figured out how to do is have \"shared\" views across projects.

I'm using CodeIgniter for several projects.

What I haven't figured out how to do is have "shared" views across projects.

For example, I'd like to be able to do something like this:

$this->load->view ("mysharedview");

Where mysharedview.php does not exist in my project's applicat开发者_Go百科ion/views folder, but in a shared location that is used by all projects.

Anyone know of a way to do this that doesn't require modifying the core CI files?


Have you looked at Matchbox??

it seems that it can do what you want..

https://github.com/EllisLab/CodeIgniter/wiki/Matchbox

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号