Hi there,
I have written an own component with methods.
Using these methods in tpl works fine.
I'm using Oxid Enterprise version 5.0.6
Now I'm trying to call a function of this component in a modul - for the backend.
My call:
The classname of my component is oxpr_cmp_utils
The error I get:
Do I have first to create an object of the component?
I thought that's not nessessary for components?
I have written an own component with methods.
Using these methods in tpl works fine.
I'm using Oxid Enterprise version 5.0.6
Now I'm trying to call a function of this component in a modul - for the backend.
My call:
PHP Code:
$sOxid = $this->_oaComponents["oxpr_cmp_utils"]->getArticleOxidByArtnum($aParam);
The error I get:
Code:
Fatal error: Call to a member function getArticleOxidByArtnum() on a non-object in ...oxpr_article_extend.php on line 132
I thought that's not nessessary for components?