title: Joomla - using one model and one view for multiple tasks
body: <p>I am making a simple component that responds with an XML message.  </p>
  
  <p>What I have now is:</p>
  
  <pre><code>controller.php
                 models/
                       register.php
                       login.php
                       download.php
                 views/
                       users/
                             view.xml.php
                       login/
                             view.xml.php
                       download/
                                view.xml.php
  </code></pre>
  
  <p>What I want is:</p>
  
  <pre><code>controller.php
                 models/
                       users.php
  
                 views/
                       users/
                             view.xml.php
  </code></pre>
  
  <p>The component will perform three operations, login, register and download.</p>
  
  <p>How should I set this up?</p>
  
  <p>ie.  controller will have three tasks  (login, register and download)
  How will I get the data to the View?  Do I need three models?  Should I just output the xml from the controller?</p>