Welcome Guest, Not a member yet? Register   Sign In
scopes within CI
#1

[eluser]ramabodhi[/eluser]
So if in one of my libraries i call $this->CI->inventory = $this->getInv($username)

so far so good.. now i can work with $this->inventory in my views, but when i try to call it in my controllers I get "Message: Undefined property: CI_Loader::$inventory"

How do i taret ci->inventory from within a controller? Do i set the instance to a variable in my constructor, and then act like i'm in one of my libraries?

likewise when i set $this->something in a controller its not accessible in a view... I know the problem here is my syntax and how I'm pointing to the objects, but I'm not sure how to solve it.


Messages In This Thread
scopes within CI - by El Forum - 04-30-2009, 12:03 PM
scopes within CI - by El Forum - 04-30-2009, 12:12 PM
scopes within CI - by El Forum - 04-30-2009, 06:56 PM
scopes within CI - by El Forum - 04-30-2009, 07:07 PM



Theme © iAndrew 2016 - Forum software by © MyBB