title: Joomla calling a Helper from within view.html.php
body: <p>I can't use a helper function</p>
  
  <p>I've a helper file in site->helpers->document_management.php</p>
  
  <p>I've a class in that file 
                  defined('_JEXEC') or die;</p>
  
  <pre><code>            /**
              * Document_managment helper.
              */
              class Document_managmentHelper
              {
  
              function testFunction()
              {
                  $textis= "hello";
                  return $textis; 
              }
              }
  </code></pre>
  
  <p>In my site->views->document->view.html.php</p>
  
  <p>I attempt to call the function testFunction:</p>
  
  <pre><code>            $callingCard = Jview::loadHelper('Document_managment');
              //require_once JPATH_COMPONENT.'/helpers/document_managment.php';
              $getprofileinfo = Document_managmentHelper::testFunction();
              echo getprofileinfo;    
              echo "test is ". JPATH_COMPONENT.'/helpers/document_managment.php';
  </code></pre>
  
  <p>I just get </p>
  
  <p>PHP Fatal error: Class 'Document_managmentHelper' not found in /var/www/vhosts/mydomain.com/httpdocs/components/com_document_managment/views/document/view.html.php on line xx </p>
  
  <p>I can't figure it out </p>