How create a component and pass some values to it

Hi guys,

I intend to create a component but I need to pass some values to it (like current model and controller, maybe a query output), I need this to generate some things based on database output.

How can I create a component and pass values to it?

Thanks.

Check the docs for how to use widgets, that’s probably what you need.