There are a lot of API changes in Joomla between 2.x and 3.x versions. In development of Joomla 3-components I still use the legacy class abstracts:
jimport('joomla.application.component.view');
class TestViewItem extends JViewLegacy {
public function display($tpl = null) {
$model = JModelLegacy::getInstance('Test', 'JiwaModel');
$model->call();
}
}
But what will be the correct non legacy way of doing it in Joomla 3.x and beyond?