Welcome Guest, Not a member yet? Register   Sign In
Templating
#1

[eluser]jurlan[/eluser]
Hi all,

I know there have been quite a few discussions on CI and templating, so I'm not going to go over them all of them.
My specific question is: Is there a way to have a view inside a main view that does not reload when going to another page.

Code:
$this->load->view('header');
$this->load->view('player');
$this->load->view($content);
$this->load->view('footer');

It would be awesome if header, player and footer didn't reload when going to another page, but if it's only possible for player I'm already very happy!

Thank you in advance for pointing me in the right direction.

/jurgen
#2

[eluser]Mr. Pickle[/eluser]
I think this is not for the CI layer. A new (normal) request will be a new page-load.

My best guess is to work with AJAX requests to reload specific contents of your page only.
I just guess (and hope) that old school frames are not an option!
#3

[eluser]jurlan[/eluser]
For now I fixed it with a fixed div that stays on top op the page.
Might even be a better solution Smile




Theme © iAndrew 2016 - Forum software by © MyBB