We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

$this->CI->load->plugin doesn't work

Development and Programming

Komtur's avatar
Komtur
15 posts
15 years ago
Komtur's avatar Komtur

Hello,

I need to load an existing CodeIgniter plugin from my EE PlugIn.

This code doesn’t work:

$this->CI =& get_instance(); 
$this->CI->load->plugin('...the CI plugin');

Loading the CI Plugin via EE doesn’t work as well:

$this->EE->load->plugin('...the CI plugin');

Anyone any ideas?

       
Pascal Kriete's avatar
Pascal Kriete
2,589 posts
15 years ago
Pascal Kriete's avatar Pascal Kriete

Plugins were removed in CI 2.0. Move the file to the helper folder and load it as a helper.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.