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

Automatically find element controller class by name #990

Open
OldStarchy opened this issue Jul 7, 2022 · 0 comments
Open

Automatically find element controller class by name #990

OldStarchy opened this issue Jul 7, 2022 · 0 comments

Comments

@OldStarchy
Copy link
Contributor

This is more of a question than a feature request as I'm sure someone has already thought about this before...

Page controllers are found by self::class + 'Controller', why don't we do this for elements too? I'm definitely going to be following this convention when writing controllers for custom elements as that's what we do for PageController, so I think it makes sense that the default getController would check for this class too rather than just going straight for ElementController.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants