Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 492 Bytes

layouts-from-a-module.md

File metadata and controls

18 lines (12 loc) · 492 Bytes

Layouts From A Module

If you need the set layout to be rendered from a specific module then use the module argument from the setLayout() or renderLayout() methods:

component name="general"{

    function index(event,rc,prc){

        // call some model for data and put into the request collection
        prc.myQuery = getInstance('MyService').getData();
        // set the view for rendering
        event.setLayout( name="admin", module="contentbox" );

    }

}