Hi all,

 

i did not find a way to do this also. $aViewsChain seems to be unused, i 
noticed some template calls use _parent to pass the current value of 
getClassName to the widget, but there should be some way to get the main 
controller class without having to do this imho.

 

Regards,

Frank Zunderer

 

 

 

Von: [email protected] 
[mailto:[email protected]] Im Auftrag von Lange, Björn
Gesendet: Montag, 3. Dezember 2012 17:12
An: [email protected]
Betreff: [oxid-dev-general] How to access $oViewConf->getActiveClassName() in 
Widget-Template

 

Hi all,

 

I did not find a way to get the active view name in a template, displayed by 
the new widget structure. OXID uses the "$aViewsChain" in the 
oxShopControl-Chain for loading the template, but i did not see a usage of this 
chain displaying a widget.

 

protected function _initializeViewObject($sClass, $sFunction, $aParams = null, 
$aViewsChain = null)

    {

        $myConfig = $this->getConfig();

 

        // creating current view object

        $oViewObject = oxNew( $sClass );

 

        // store this call

        $oViewObject->setClassName( $sClass );

        $oViewObject->setFncName( $sFunction );

        $oViewObject->setViewParameters( $aParams );

 

        $myConfig->setActiveView( $oViewObject );

 

 

        // init class

        $oViewObject->init();

 

        return $oViewObject;

    }

 

Can you give me a hint? $oViewConf->getActiveClassName() returns the 
widget-Class.

 

Regards,

Björn

 

-- 

_________________________________
WBL Konzept, Beerden & Lange GbR
Björn Lange
Geschäftsführender Gesellschafter
 
Luxemburger Straße 266
50937 Köln

Bilker Straße 34
40213 Düsseldorf

Telefon: 0211 942 120 31 | Fax:  0211 942 120 32
 <http://www.wbl-konzept.de/> www.wbl-konzept.de |  
<http://www.facebook.com/wbl.konzept> www.facebook.com/wbl.konzept |  
<mailto:[email protected]> [email protected] 

 

_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general

Reply via email to