Welcome Guest, Not a member yet? Register   Sign In
Implementing Navigation Bar
#1

[eluser]Unknown[/eluser]
I am unsure how to do the following in CI:

- I have three pages: home, portfolio, and search.
- At the top of each of these pages resides a navigation bar.
- The navigation bar contains a log-in.
- The home page contains a registration form, as well.

The way I have it (not) working is that I have created three controllers for each of the pages, and four views (one for each page, and one for the navigation). However, I have now come to the following problem:

When a user logins on the home page, they have to be redirected to the home page but the navigation bar has to be updated to show that they are logged in. The same problem for each of the other pages...

I'm not sure if this makes sense - but I suppose an easier question would be what is the best pattern to implement a common navigation bar containing a log-in form in CI?

(If it helps I'm using TankAuth.)


Messages In This Thread
Implementing Navigation Bar - by El Forum - 02-12-2012, 05:26 PM
Implementing Navigation Bar - by El Forum - 02-12-2012, 07:03 PM
Implementing Navigation Bar - by El Forum - 02-12-2012, 09:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB