Answer the question
In order to leave comments, you need to log in
How to call a function from a model in a Joomla component?
I'm trying to deal with mvc joomla 2.5.
The site has a slogin component that registers and authorizes users from social networks. networks.
Their avatars are saved to the avatar folder, written to the plg_slogin_profile.avatar table
And for users who register as standard, the avatars are saved to the avatar S
folder, and
the user_profile.avatar table from plugin table to user table.
I previously wrote the function itself in the model (for now, just writing the avatar from the plugin to the standard table), but I can’t figure out how to call it.
Model - prntscr.com/awpn5l
Controller - prntscr.com/awpnfk
I want to run the function when it hits the cabinet
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question