title: Fatal error: Call to a member function get() on a non-object in joomla2.5
body: <p>i am creating a joomla2.5 module.
  I want to retrieve the data pass through parameter from the module, but am getting the about title error. Below is my code:
  helper.php</p>
  
  <pre><code>class modFeedGrabber
  {
      function feedurl(){
          $url = $params-&gt;get('feedUrl');
          return $url;
      }
      function maxCount(){
          $maxcount = $params-&gt;get('maxCount');
          return $maxcount;
      }
      function showDesc(){
          return $params-&gt;get('showDesc');
      }
      function showPubDate(){
          return $params-&gt;get('showPubDate');
      }
      function targetLink(){
          return $params-&gt;get('titleLinkTarget');
      }
      function descChar(){
          return $params-&gt;get('descCharacterLimit');
      }
      function fx(){
          return $params-&gt;get('fx');
      }
      function delay(){
          return $params-&gt;get('delay');
      }
      function timeout(){
          return $params-&gt;get('timeout');
      }
      function module_sfx(){
          return $params-&gt;get('moduleclass_sfx');
      }
  }
  </code></pre>
  
  <p>mod_feedGrabber.php</p>
  
  <pre><code>defined( '_JEXEC' ) or die( 'Restricted access' );
  
  $sitebase = JPATH_BASE;
  $doc =&amp; JFactory::getDocument();
  
  // Include the syndicate functions only once
  require_once( dirname(__FILE__).DS.'/helper.php' );
  $feed = new modFeedGrabber();
  $url = $feed-&gt;feedurl($url);
  $maxcount = $feed-&gt;maxcount($maxcount);
  require( JModuleHelper::getLayoutPath( 'mod_feedGrabber' ) );
  </code></pre>
  
  <p>My new quetion is how can i get data pass from the module?</p>