What's preferred/right way to use component in module helper #34907
Unanswered
joomdonation
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In getList method of some of our modules, we need to use component model to get data. However, currently, we are doing it in different ways in different modules:
We should choose an option and do it in the same way in all of our modules instead of doing it in different ways like how we are doing at the moment
To me, I prefer the second option because we usually have $app variable as a parameter in the method already, so creating model instead the method makes the module entry point a bit cleaner.
Beta Was this translation helpful? Give feedback.
All reactions