[eluser]jedd[/eluser]
Hi Bill,
Earlier on you said:
Quote: What I’m trying to do is grab data from a variable (is_logged_in). I’ve programmed in php a while ago, and I remember setting variables as global - I just don’t know how to do that.
In general terms, we don't like global variables. Of course, we have ways to fake them - such as using session data.
Here's two threads that I found that touch on some of the problems you've described - and hopefully give you some ideas for solving them.
[url="http://ellislab.com/forums/viewthread/110608/"]Using a controller to display a view[/url]
[url="http://ellislab.com/forums/viewthread/108661/"]Help with beginner login question[/url]
Neither touch on dx_auth, but if you search for dx_auth you should find a plethora of relevant pages.
Quote:I think this might be the essence of my problem - I don't /have/ a controller for my footer - it's just a view file. No controller. Does every view file need a controller?
No, not as such, though in reality every view you have will need to be called by
a controller, somewhere. It might be by your MY_Controller, if you're using that construct, otherwise a normal controller - but lacking any such call means that the view never gets .. well .. viewed.
Having said that, I wouldn't create a footer controller (or a header one). I'd create those view snippets in my MY_Controller (I can find a few good threads on this approach if you're interested) instead.
And don't fret - we all started clueless. Well, apart from all the Dereks.