I hardly know any OOP PHP so I don't know how to properly pass variables, especially in EE.
I am working in a Module, and I have a function that passes my modules results to a .php file that has the table to show the results in the modules panel. I want to pass a variable "$config" to that file so I make a if/else statement.
Here is the function that passes my results to the file, that I need to pass the "$config" variable to create my if/else.
public function outputBrowser($results)
{
// $rows = array();
// print_r($results);
// die();
$this->EE->load->add_package_path($this->report_path);
return $this->EE->load->view('output_browser', array("results" => $results), TRUE);
}