Welcome Guest, Not a member yet? Register   Sign In
Direct link to a view for use in a frameset
#1

[eluser]taurine[/eluser]
I'm loading my view in the controller:

Code:
$this->load->view('frame_view', $data);

Now in frame_view.php, I have a frameset with 2 frames. In frame 1, I want to load topbar_view.php, and in frame 2, I want to load an outside website. In other words, this is a short URL script where I add my own bar on top showing how many hits, some branding, and link to break frames.

Something like this:
Code:
<frameset rows="20,*">
<frame src="topbar_view.php?clicks=<?php echo $clicks;?>&original;_url=<?php echo $original_url;?>" />
<frame src="<?php echo $original_url;?>" />
</frameset>

However, I can't get topbar_view.php to load. I assume my path to it is wrong. I read the views page in the guide, and I couldn't find anything about direct links to views, only loading from controller.

I had considered taking the iframe route, so that I don't need another view for the topbar, but the extra scroll bar and the 100% height not really being 100% isn't working right for me, unless I'm doing something wrong. Thanks for any input.




Theme © iAndrew 2016 - Forum software by © MyBB