I can't use a helper function
I've a helper file in site->helpers->document_management.php
I've a class in that file defined('_JEXEC') or die;
/**
* Document_managment helper.
*/
class Document_managmentHelper
{
function testFunction()
{
$textis= "hello";
return $textis;
}
}
In my site->views->document->view.html.php
I attempt to call the function testFunction:
$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';
I just get
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
I can't figure it out