public function display($tpl = null) { AImporter::model('vehicles'); $model = new BookproModelVehicles(); $this->items = $model->getTypes(); if (count($error = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } $this->addToolbar(); parent::display($tpl); }