/** * Method to load and return a model object. * * @param string The name of the model. * @param string Optional model prefix. * @param array Configuration array for the model. Optional. * @return mixed Model object on success; otherwise null failure. * @since 1.6 Replaces _createModel. */ protected function createModel($name, $prefix = '', $config = array()) { // use true so that we always use the Joomla db when in admin. // otherwise if alt cnn set to default that is loaded and the fabrik tables are not found $db = FabrikWorker::getDbo(true); $config['dbo'] = $db; $r = parent::createModel($name, $prefix, $config); return $r; }