Latest news:
Sahih al-Bukhari (সহীহ বুখারী) is a free Hadith application for android. This application is advertisement free. Download now https://play.google.com/store/apps/details?id=com.akramhossin.bukharisharif
In this article we will learn how to load data into yii select box from database.
We will follow below steps
Lets say we have a table as pos_mac, now we will add a method named as getMacList() in POS_MAC model class.
This method will load the all table data of pos_mac. Yii CHtml::listData function convert this data into array list
For Example
Views : 935