[eluser]xwero[/eluser]
I think a view shouldn't be aware of where it is loaded, that is a job for html and javascript. I use jquery and jqmodal for this example
Code:
// controller
$popup['content'] = $this->load->view('content','',true);
$page['msg'] = $this->load->view('popup',$popup,true);
$this->load->view('page',$page);
// views popup.php
<div class="jqmWindow" id="msg"><?php echo $content; ?></div>
// site.js
if($('#msg').length == 1)
{
$('#msg').jqm().jqmShow();
}