src/Module/Controller/Controller.class.php
protected function config($sActionAlias)
    {
        $sFileName = RX_PATH.'/ruxon/modules/'.$this->sModuleAlias.'/config/controllers/'.$this->sControllerAlias.'/action'.$sActionAlias.'.inc.php';
        if (file_exists($sFileName)) 
        {
            $aConfig = include($sFileName);
            
            $sBasePath = 'ruxon/modules/'.$this->sModuleAlias;
            
            $aLang = array();

            if (file_exists(RX_PATH.'/'.$sBasePath.'/messages/'.Core::app()->config()->getLang().'/messages.inc.php')) {
                $aLang = Core::require_file($sBasePath.'/messages/'.Core::app()->config()->getLang().'/messages.inc.php');
            } else if(file_exists(RX_PATH.'/'.$sBasePath.'/messages/'.Core::app()->config()->getDefaultLang().'/messages.inc.php')) {
                $aLang = Core::require_file($sBasePath.'/messages/'.Core::app()->config()->getDefaultLang().'/messages.inc.php');
            } else {
                $aLang = array();
            }
            
            $aConfig = Core::parseXmlI18n($aConfig, $aLang);
            
            return $aConfig;
        }

        return false;
    }
protected function config($sActionAlias)
    {
        $sFileName = RX_PATH.'/ruxon/modules/'.$this->sModuleAlias.'/config/controllers/'.$this->sControllerAlias.'/action'.$sActionAlias.'.inc.php';
        if (file_exists($sFileName)) 
        {
            $aConfig = include($sFileName);
            
            $sBasePath = 'ruxon/modules/'.$this->sModuleAlias;
            
            $aLang = array();

            if (file_exists(RX_PATH.'/'.$sBasePath.'/messages/'.Core::app()->config()->getLang().'/messages.inc.php')) {
                $aLang = Core::require_file($sBasePath.'/messages/'.Core::app()->config()->getLang().'/messages.inc.php');
            } else if(file_exists(RX_PATH.'/'.$sBasePath.'/messages/'.Core::app()->config()->getDefaultLang().'/messages.inc.php')) {
                $aLang = Core::require_file($sBasePath.'/messages/'.Core::app()->config()->getDefaultLang().'/messages.inc.php');
            } else {
                $aLang = array();
            }
            
            $aConfig = Core::parseXmlI18n($aConfig, $aLang);
            
            return $aConfig;
        }

        return false;
    }
protected function config ( $ sActionAlias ) { $ sFileName = RX_PATH . '/ruxon/modules/' . $ this -> sModuleAlias . '/config/controllers/' . $ this -> sControllerAlias . '/action' . $ sActionAlias . '.inc.php' ; if ( file_exists ( $ sFileName ) ) { $ aConfig = include ( $ sFileName ) ; $ sBasePath = 'ruxon/modules/' . $ this -> sModuleAlias ; $ aLang = array ( ) ; if ( file_exists ( RX_PATH . '/' . $ sBasePath . '/messages/' . Core :: app ( ) -> config ( ) -> getLang ( ) . '/messages.inc.php' ) ) { $ aLang = Core :: require_file ( $ sBasePath . '/messages/' . Core :: app ( ) -> config ( ) -> getLang ( ) . '/messages.inc.php' ) ; } else if ( file_exists ( RX_PATH . '/' . $ sBasePath . '/messages/' . Core :: app ( ) -> config ( ) -> getDefaultLang ( ) . '/messages.inc.php' ) ) { $ aLang = Core :: require_file ( $ sBasePath . '/messages/' . Core :: app ( ) -> config ( ) -> getDefaultLang ( ) . '/messages.inc.php' ) ; } else { $ aLang = array ( ) ; } $ aConfig = Core :: parseXmlI18n ( $ aConfig , $ aLang ) ; return $ aConfig ; } return false ; }
Return an action config

@param string $sActionAlias action alias
@return array|false
Return an action config