Q:

CodeIgniter: Sending params to a view?

My controls receives some params from the user, I would like to place them inside the view I'm calling, how should I do this without splitting the view into multiple parts?
Thank you.

A:

If I understand correctly, you should be able to do something like this for your controller
<?php
class Blog extends Controller 
{

  function index()
  {
   $data['title'] = "My Real Title";
   $data['heading'] = "My Real Heading";

   $this->load->view('blogview', $data);
  }
}
?>

And something like this for your view:
<html>
<head>
<title><?php echo $title;?></title>
</head>
<body>

This is from the Codeignitor User guide here

