title: "Fatal error: Cannot redeclare class" ... but the class was not declared
body: <p>(I'm using Joomla v1.5.15 and PHP 5.3.4)</p>
  
  <p>I have tested the solutions found in this and others developer forums, but I still having the same error.</p>
  
  <p>Requiring file => contratolocal.php</p>
  
  <pre><code>...
  if ( !class_exists('MTIHelperEstadosLocal') )
      JLoader::import('helpers.estados.estadoslocal', JPATH_COMPONENT, false);
  
  class MTIControllerContratoLocal extends MTIController
  {
  ...
  </code></pre>
  
  <p>Required file => estadoslocal.php</p>
  
  <pre><code>...
  class MTIHelperEstadosLocal extends MTIHelperEstados
  {
  ...
  </code></pre>
  
  <p>"JLoader::import" is used normally in Joomla to import files to the actual script. Anyway, I tried "include/require_once" php methods also without success.</p>
  
  <p>I got the same error with every solution that I tried:</p>
  
  <blockquote>
    <blockquote>
      <p>"Fatal error: Cannot redeclare class MTIHelperEstadosLocal"</p>
    </blockquote>
  </blockquote>
  
  <p>The class is not declarated previously becouse I can't use the class without the import and if I print the returned array of the "get_declared_classes()" php method, this class isn't there.</p>
  
  <p>What going on?</p>
  
  <p>Thanks</p>