Quantcast
Channel: OXID Community Forum
Viewing all articles
Browse latest Browse all 6951

Using component method in backend modul

$
0
0
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:
PHP Code:

$sOxid $this->_oaComponents["oxpr_cmp_utils"]->getArticleOxidByArtnum($aParam); 

The classname of my component is oxpr_cmp_utils

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
Do I have first to create an object of the component?
I thought that's not nessessary for components?

Viewing all articles
Browse latest Browse all 6951

Trending Articles