Skip to content

Add namespace support for rendering widgets#120

Open
beckyresler wants to merge 1 commit intoteepluss:masterfrom
beckyresler:custom
Open

Add namespace support for rendering widgets#120
beckyresler wants to merge 1 commit intoteepluss:masterfrom
beckyresler:custom

Conversation

@beckyresler
Copy link

I have a situation where I need to be able to render a widget that is part of another package, i.e. it is outside of the App\Widgets namespace. (see #119)

I modified the Theme::widget() call to have an optional 3rd parameter for the namespace, which defaults to null.

modified function widget():
- added a 3rd optional parameter to the function call, ; defaults to null
- added code to use the specified namespace, if set, when setting $className; otherwise uses the widget namespace from the theme config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant