GetData - Joomla! Forum - community, help and support
hi, i followed hello world tutorials, , , looking @ core components tried make own component. i'm stuck following: want edit item (say greeting), model has method getdata retrieves record database. data loaded in view by: code: select all function display($tpl = null) { $item =& $this->get('data'); parent::display($tpl); } and assigned template by code: select all $this->assignref('item', $item); now extend view showing related items (say countries use particular greeting). i made method getcountries() in model retrieves data table in database, , changed view adding: code: select all function display($tpl = null) { $item =& $this->get('data'); $countries =& $this->get('countries'); parent::display($tpl); } code: select all $this->assignref('item', $item); $this->assignref('countries', $countries); someh...