public function generate()
    {
        $GLOBALS['TL_CSS'][] = 'bundles/metamodelscore/css/style.css';
        $arrModule           = $GLOBALS['BE_MOD']['metamodels']['metamodels'];
        // Custom action (if key is not defined in config.php the default action will be called).
        if (\Input::get('key') && isset($arrModule[\Input::get('key')])) {
            Callbacks::call($arrModule[\Input::get('key')], $this, $arrModule);
        }

        $act = \Input::get('act');
        if (!strlen($act)) {
            $act = 'showAll';
        }

        return $this->dataContainer->getEnvironment()->getController()->handle(new Action($act));
    }
public function generate()
    {
        $GLOBALS['TL_CSS'][] = 'bundles/metamodelscore/css/style.css';
        $arrModule           = $GLOBALS['BE_MOD']['metamodels']['metamodels'];
        // Custom action (if key is not defined in config.php the default action will be called).
        if (\Input::get('key') && isset($arrModule[\Input::get('key')])) {
            Callbacks::call($arrModule[\Input::get('key')], $this, $arrModule);
        }

        $act = \Input::get('act');
        if (!strlen($act)) {
            $act = 'showAll';
        }

        return $this->dataContainer->getEnvironment()->getController()->handle(new Action($act));
    }
public function generate ( ) { $ GLOBALS [ 'TL_CSS' ] [ ] = 'bundles/metamodelscore/css/style.css' ; $ arrModule = $ GLOBALS [ 'BE_MOD' ] [ 'metamodels' ] [ 'metamodels' ] ; // Custom action (if key is not defined in config.php the default action will be called). if ( \ Input :: get ( 'key' ) && isset ( $ arrModule [ \ Input :: get ( 'key' ) ] ) ) { Callbacks :: call ( $ arrModule [ \ Input :: get ( 'key' ) ] , $ this , $ arrModule ) ; } $ act = \ Input :: get ( 'act' ) ; if ( ! strlen ( $ act ) ) { $ act = 'showAll' ; } return $ this -> dataContainer -> getEnvironment ( ) -> getController ( ) -> handle ( new Action ( $ act ) ) ; }
Parse the template.

@return string

@SuppressWarnings(PHPMD.Superglobals)
@SuppressWarnings(PHPMD.CamelCaseVariableName)
Parse the template .