Web Hosting Geeks | Web Hosting Experts
Need help? Call us 1(866)TOP-HOST

14318 reviews 1707 hosting providers

Questions & Answers

Joomla 2.5 Framework

Feb 12, 2013 by Donald
hi all
I am using Joomla 2.5 Framework, and I have a simple small table :
String item_id
Int id
Text name

I want to load all the item_id values to an  array using JTable. Can anyone please tell me how to do this?
Thank you in advanced.

1 Answer

0 votes
Feb 12, 2013 by FixHost
You can inherit the model class from JModelList like this:
class modelModelcomponent extends JModelList
        protected function getListQuery()
            $db = JFactory::getDBO();
            $query = $db->getQuery(true);



            return $query;