I'm trying to integrate my CodeIgniter 2 site into the MyBB login system. I have found this general purpose guide.
http://community.mybb.com/thread-60422.html
I thought I might be able to put it at the top of index.php and have access to the $mybb variable on the views, but I can't access the variable inside CodeIgniter. If I print_r right after including it on the index I get all the data, but if I print_r on the view I get nothing. I figure this is a variable scope issue.
What is the best way to get access to $mybb throughout my CI models, views, and controllers?