• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
scopes within a view

#4
[eluser]Jamie Rumbelow[/eluser]
You might want to call global on the $this object, that should give you access to all of CI's functions from a view.

Code:
function echoConfigItem()
{
global $this;

echo $this->config->item("some_item");
}


Messages In This Thread
scopes within a view - by El Forum - 09-04-2008, 01:09 AM
scopes within a view - by El Forum - 09-04-2008, 01:28 AM
scopes within a view - by El Forum - 09-04-2008, 01:34 AM
scopes within a view - by El Forum - 09-04-2008, 11:01 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.