How to retrieve data from another table while retrieving data from a table in loadFormData function in Joomla 2.5
I have to show data from two different tables. Therefore I had to change 'loadFormData' function to satisfy that. Current implementation was as follows. /** * Method to get the data that should be injected in the form. * * @return mixed The data for the form. * @since 1.6 */ protected function loadFormData() { // Check the session for previously entered form data. $data = JFactory::getApplication()->getUserState('com_speakee.edit.batchofcard.data', array()); if (empty($data)) { $data = $this->getItem(); } return $data; } Then I changed it to get data from another table called 'Discount' by calling table of 'Discount' and got table properties by primary key. /** * Method to get the data that should be injected in the form. *...