Thanks to both of you, but now the other problem are the variables passed to the view:
Controller:
PHP Code:
$data['curr_url'] = current_url();
$this->load->view('test_view', $data);
View:
PHP Code:
/**
* @see Main::index()
* @var Main $curr_url
*/
echo $curr_url
It highlights the $curr_url and it says that there is no "__toString" method in Main controller class.