I have encountered a problem maybe it is so easy, however i cannot handle despite all my efforts.
I have a table named ‘kitap’ in database, I create model/view and controller classes for the table with gii tool.
My web application render site/index as default, here is my actionIndex function in siteController.php:
public function actionIndex()
// renders the view file 'protected/views/site/index.php'
// using the default layout 'protected/views/layouts/main.php'
$model = new Kitap;
When I said documentation, I didn’t mean only the definitive guide, there are many types of documentation, including wikis, screencasts, the blog tutorial, and also you can check the code generated by Gii, etc