how to extend method
how to call another module method in my custom module
-
-
- · Kanna
- ·
how to use getNUM() in my module instead of use getNUm() in BxDolSearch from BxDolSearch.
-
-
·
LeonidS
- ·
It's enough to have this method in your [Module]Search.php class. If you need to call in the new place then syntax will look like:
bx_import($sClassSearchResult, $this->_aModule);
$sClass = $this->_aModule['class_prefix'] . $sClassSearchResult;
$o = new $sClass($sMode, $aParams);
where $sClassSearchResult - the name of your module Search class.
-
·
LeonidS