vbulleitn integration error |
[eluser]Evollution[/eluser]
to include vbulletin i just added to index.php : Code: <?php now if i try to use echo Code: $vbulletin->userinfo['username']; Code: Severity: Notice i don't undersand why when i use $vbulletin->userinfo['username'] on index.php it works but if i use $vbulletin->userinfo['username'] on view files i get this error :\ I'm using CI 2.0
[eluser]CroNiX[/eluser]
Because in index.php, $vbulletin is global, but in your own functions it isn't unless you are declaring it global within your classes/functions or passing it in. Code: class my_class extends CI_Controller Heres a good thread on creating a library and autoloading it so you don't have to do this for each controller.... http://ellislab.com/forums/viewthread/110010/ It works for vb4 too. |
Welcome Guest, Not a member yet? Register Sign In |