Welcome Guest, Not a member yet? Register   Sign In
basic but....
#1

[eluser]soupdragon[/eluser]
going mad nonetheless...


I am still having problems wrapping my head round CI / MVC

For example i have a main page -

where i want a log-in box at the side
a navigation at the side
a header - which can and cannot include various js bits and pieces

the actual page showing what i want

and then the footer.

Not too unusual i suspect - and not using CI one i would have no problems making(including my classes, base files etc.

But in CI.....

i have now under views/common/ sidebar, header, footer - fine no probs

main page i have whatever view with a controller for it which then loads the views header, footer, sidebar, and itself - (now in every main page controller i have to set my css, my base so i can pass it to my various views - (code duplication cos my css and base stay the same but thats beside the point))

......but the login box ? - i have a controller for it but dont want to call just the login
so how do i combine 2 controllers (have read about various models) i suspect i am just having a mental blank here but help...
should i move the whole login to a model, a library or what

If someone can point me in the right direction using simple terms i would be grateful..


Messages In This Thread
basic but.... - by El Forum - 03-11-2008, 11:46 AM
basic but.... - by El Forum - 03-11-2008, 11:57 AM
basic but.... - by El Forum - 03-11-2008, 04:24 PM
basic but.... - by El Forum - 03-12-2008, 03:30 AM
basic but.... - by El Forum - 03-12-2008, 03:41 AM
basic but.... - by El Forum - 03-12-2008, 04:36 AM
basic but.... - by El Forum - 03-12-2008, 04:39 AM
basic but.... - by El Forum - 03-12-2008, 05:00 AM
basic but.... - by El Forum - 03-12-2008, 06:30 AM
basic but.... - by El Forum - 03-12-2008, 06:55 AM
basic but.... - by El Forum - 03-13-2008, 02:25 AM
basic but.... - by El Forum - 03-13-2008, 02:58 AM
basic but.... - by El Forum - 03-13-2008, 04:11 AM
basic but.... - by El Forum - 03-13-2008, 05:04 AM
basic but.... - by El Forum - 03-13-2008, 06:13 AM
basic but.... - by El Forum - 03-13-2008, 06:41 AM
basic but.... - by El Forum - 03-13-2008, 07:12 AM
basic but.... - by El Forum - 03-13-2008, 02:18 PM



Theme © iAndrew 2016 - Forum software by © MyBB