This is connected to the earlier post I mentioned:
Now that I found the loadhistory function, I was wondering, how was it able to be called directly from the URL below:
in the part : &task=article.loadhistory
article is the controller right? and loadhistory is the controller function?
Based from this link, https://docs.joomla.org/Absolute_Basics_of_How_a_Component_Functions
is a statement saying :
"If your request contained a 'task=jump' parameter the controller would have tried to call a method (function) named 'jump' in your controller class"
But when i viewed the article class under the controllers folder, there was no loadhistory function. It was found in the JModelLegacy Class.
How is this possible? I am planning on re-using the loadhistory functionality on a custom component that we're trying to build.