I have a controller that sets up several variables like this...
$data["pageTitle"] = "My Profile";
$data["userData"] = $this->user_model->getUserData($user_id);
$data["userTool"] = $this->api->getUserTool($user_id);
In the view I know I can access each as a separate variable...
$pageTitle
$userData
$userTool
The data in each variable is passed to a function in the view for processing.
showUserData($pageTitle, $userData, $userTool);
What I would like to do is pass $this to the function and parse the data from that rather than have a string of arguments in the call to the function. Is this doable?
$thisin the view? Because you can. Your view isn't just limited to variables you passed viaload. If that is not your question, maybe show what kindof code you were thinking of.