Is it possible somehow to add few my own methods to JModel / JModelLegacy without changing source code? For example from controller.
Is it possible somehow to add few my own methods to JModel / JModelLegacy
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you want to directly add it into
JModel / JModelLegacythen no.If you building a component then yes as you extend
JControllerLegacy / JControllerwhen you build your component in the controller.php file. But that will be specific to your component of course. It can’t be used by another component