I am a newbie to yii. So far i have setup yii with three controllers (employees, branches and site (default)). I made some customisation to the views but that all code was generated with gii and i customised it. i have also setup rights extension and yiistrap and yiwheels.
I want to execute a query like this.
select branch_id from tbl_user where username = $_POST[‘username’] and password = $_POST[‘password’]
$_POST[‘username’] and $_POST[‘password’] are the login details user provided. I want to list all the branch_id(s). How can i use the above code in yii?