[eluser]whitey5759[/eluser]
You would need to declare a class wide scope variable (well ok we all know in PHP you don't have to declare it, but it's good practice/good coding to do so) in the Controller in order for it to be accessible in all methods in the Controller. So, following on from your example:
class User extends Controller {
var $data;
function User()
{
parent::Controller();
$this->data["page"] = “User”;
}
function index(){
$this->data["title"] = “Welcome Page”;
$this-load->view(‘home_view’, $this->data);
}
}