I try to load a codeigniter view in iframe as,
`<iframe src="<?php $this->load->view('lists');?/>"></iframe>`
But the page could not load.
With out i frame its working.
How do i load this view in iframe ?
['https://Stackoverflow.com/questions/15501034', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1939388/']
create a function in your controller

```
//project.php

function view_list()
{
$this->load->view('lists');
}

```

and call in the view page like this

```
<iframe src="<?php echo site_url('project/view_list');?>">>    </iframe>

```
This is because the iframe is on another page?
you haven't specified the controller function on that page so it doesn't recognize the view. i think you have to put the controller date from your view into the function for the view you have your iframe in, so lik this.

```
function list_view()
{
//functions for your listview
}

function viewforiframe()
{
//function for you view where the iframe is located
+
//functions for your listview
}

```

NOTE: the answer Deon gave is also a thing to look at. without a good link you could never see the view.