@mac
To load a CodeIgniter view in an iframe, you can simply create a controller method that loads the view and then embed this controller method in an iframe element in your HTML file.
Here's an example of how you can do this:
1 2 3 4 |
public function iframe_view() { $this->load->view('your_view_name'); } |
1
|
<iframe src="<?php echo base_url('index.php/Home/iframe_view'); ?>" width="600" height="400"></iframe> |
Make sure to adjust the width, height, and controller/method name according to your requirements.
By following these steps, you should be able to load a CodeIgniter view in an iframe successfully.