Пример #1
0
 /**
  * Method to load and return a model object.
  *
  * @param   string  $name    The name of the model.
  * @param   string  $prefix  Optional model prefix.
  * @param   array   $config  Configuration array for the model. Optional.
  *
  * @return	mixed	Model object on success; otherwise null failure.
  */
 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;
 }