public function inject_template(midgardmvc_core_request $request)
    {
        // Replace the default MeeGo sidebar with our own
        $route = $request->get_route();
        $route->template_aliases['content-sidebar'] = 'cmp-show-sidebar';
        $route->template_aliases['main-menu'] = 'cmp-show-main_menu';

        midgardmvc_core::get_instance()->head->add_link
        (
            array
            (
                'rel' => 'stylesheet',
                'type' => 'text/css',
                'href' => MIDGARDMVC_STATIC_URL . '/com_meego_planet/planet.css'
            )
        );
    }
public function inject_template(midgardmvc_core_request $request)
    {
        // Replace the default MeeGo sidebar with our own
        $route = $request->get_route();
        $route->template_aliases['content-sidebar'] = 'cmp-show-sidebar';
        $route->template_aliases['main-menu'] = 'cmp-show-main_menu';

        midgardmvc_core::get_instance()->head->add_link
        (
            array
            (
                'rel' => 'stylesheet',
                'type' => 'text/css',
                'href' => MIDGARDMVC_STATIC_URL . '/com_meego_planet/planet.css'
            )
        );
    }
public function inject_template ( midgardmvc_core_request $ request ) { // Replace the default MeeGo sidebar with our own $ route = $ request -> get_route ( ) ; $ route -> template_aliases [ 'content-sidebar' ] = 'cmp-show-sidebar' ; $ route -> template_aliases [ 'main-menu' ] = 'cmp-show-main_menu' ; midgardmvc_core :: get_instance ( ) -> head -> add_link ( array ( 'rel' => 'stylesheet' , 'type' => 'text/css' , 'href' => MIDGARDMVC_STATIC_URL . '/com_meego_planet/planet.css' ) ) ; }
Add our own stuff to the templates
Add our own stuff to the templates