Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add namespace support for rendering widgets #120

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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