title: component joomla
body: <p>I have a problem with a component in Joomla I want to call other function when the component start</p>
  
  <pre><code>$controller = JController::getInstance('Productos');
  $controller-&gt;execute(JFactory::getApplication()-&gt;input-&gt;get('task'));
  $controller-&gt;redirect();
  </code></pre>
  
  <p>Here I want to call a function to select in the database only one item not all </p>
  
  <p>Y try this </p>
  
  <pre><code>$controller-&gt;execute(JFactory::getApplication()-&gt;input-&gt;get('other'));
  </code></pre>
  
  <p>and in my </p>
  
  <pre><code>class ProductosController extends JController
  {
  
  function Other(){
  ...
  }
  
  }
  </code></pre>
  
  <p>But my code never pass for Other function.</p>
  
  <p>What is wrong?</p>