title: How to get component parameters?
body: <p>I have a problem here and just cant solve it :-/</p>
  
  <p>I am developing an Joomla component with backend.
  In the backend I set a parameter, the <code>dashboardId</code>, but I can't access them in the view. I always get <code>data:protected</code> (when I dump <code>params</code>). It seems like I'm not allowed to access the object.</p>
  
  <p>Here is the <code>default.xml</code>:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;metadata&gt;
      &lt;layout title="Dashboard"&gt;
          &lt;message&gt;
              &lt;![CDATA[dashboard LAYOUT DESCRIPTION]]&gt;
          &lt;/message&gt;
      &lt;/layout&gt;
      &lt;fields name="params"&gt;
          &lt;fieldset name="params"&gt;
              &lt;field
                  name="dashboardId" 
                  type="text" 
                  label="Dashboard ID"
                  description="com_dashboard_desc"
                  default="1"
              &gt;   
              &lt;/field&gt;
          &lt;/fieldset&gt;
      &lt;/fields&gt;
  &lt;/metadata&gt;
  </code></pre>
  
  <p>Now, in the <code>view.html.php</code> I try to access the parameter like this:</p>
  
  <pre><code>$app = &amp;JFactory::getApplication();
  $params = JComponentHelper::getParams('com_dashboard');
  $dashboardId = $params-&gt;get('dashboardId');
  var_dump($dashboardId);
  </code></pre>
  
  <p>When I do <code>var_dump($dashboardId);</code> I get <code>NULL</code> but when I dump <code>$app</code>, I can see the <code>dashboardID</code>  </p>
  
  <p>every help would be appreciated!
  Thanks</p>