Skip to content

Instantly share code, notes, and snippets.

@e06widu
Created July 9, 2013 14:24
Show Gist options
  • Select an option

  • Save e06widu/5957729 to your computer and use it in GitHub Desktop.

Select an option

Save e06widu/5957729 to your computer and use it in GitHub Desktop.
<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// import Joomla controlleradmin library
jimport('joomla.application.component.controlleradmin');
/**
* JoinTCM Controller
*/
class MyResourceListControllerRegions extends JControllerAdmin
{
/**
* Proxy for getModel.
* @since 1.6
*/
public function getModel($name = 'Region', $prefix = 'RegionsModel')
{
$model = parent::getModel($name, $prefix, array('ignore_request' => true));
return $model;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment