retrieve one field

hi! how to retrieve the content of only one field and view in index page. :lol: i’m really a newbie in yii.

i’m not sure what do you want, you can be more specific

I don’t really know what you want but, the site/index is rendered in the siteControler.php at protect/controller folder under public function actionIndex()

Retrieve all the forms field, sql queries etc in that function and use the function ‘render’ to render the view site/index

from which model? use findByAttributes(),findAll() etc like functions to retrieve contents from table related models.