title: Passing data from joomla view to joomla template file in joomla 1.7
body: <p>I want to know how can I pass data from joomla view to joomla template. How can I pass multiple variables?</p>
  
  <pre><code>     class CareerformViewCareerform extends JView
       {
     protected $state;
      protected $item;
  
    function display($tpl = null)
    {
          $app        = JFactory::getApplication();
      $params     = $app-&gt;getParams();
  
      // Get some data from the models
      $state      = $this-&gt;get('State');
      $item       = $this-&gt;get('Item');
              $newvar="Something";
              $success_message="Thanks for your interest";
  
         parent::display($tpl);
  
    }
      }
  </code></pre>
  
  <p>I want to pass <code>$newvar</code> and <code>$success_message</code> to template; how can I pass them?</p>