title: Joomla MVC Module delete model
body: <p>I'm a newbie on Joomla developing and I'm trying to fix an old administration module made by 'someone before me'. Module's been developed using MVC Components, it has several CRUDs and I'm stucked at deleting an item. The template view adds the toolbar icon like this:</p>
  
  <pre><code>JToolbarHelper::deleteList('', 'paises.delete', JTOOLBAR_DELETE);
  </code></pre>
  
  <p>It also has at the list controller (DistribuidoresControllerPaises), the getModel function:</p>
  
  <pre><code>public function getModel($name = 'Pais', $prefix = 'DistribuidoresModel', $config = array('ignore_request' =&gt; true))
  {
      $model = parent::getModel($name, $prefix, $config);
  
      return $model;
  }
  </code></pre>
  
  <p>The model class: </p>
  
  <pre><code>class DistribuidoresModelPais  extends JModelAdmin
  </code></pre>
  
  <p>When selecting an item on the list, and clicking the trash button an empty page opens with this ending: </p>
  
  <blockquote>
    <p>administrator/index.php?option=com_distribuidores&amp;view=pais</p>
  </blockquote>
  
  <p>If I come back to grid, the item still remains.</p>
  
  <p>Any suggestion?</p>
  
  <p>Thanks in advance</p>