Welcome to TagMyCode

Please login or create account to add a snippet.
Language: PHP
Posted by: Dylan Lopez
Added: Jan 18, 2018 7:09 AM
Views: 6
Tags: no tags
In some cases you may want to develop classes that exist apart from your controllers but have the ability to utilize all of CodeIgniter’s resources. This is easily possible as you’ll see. https://www.codeigniter.com/user_guide/general/ancillary_classes.html?highlight=instance#get_instance
  1. $CI =& get_instance();