I have encountered a problem maybe it is so easy, however i cannot handle despite all my efforts.
It is:
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;
$this->render('index',array('model'=>$model)); }
You should not advice me that reading documentation better. I wasted many times to read documentation again and again, however I did not find the solution there. I solved it on my own.
just DO NOT direct people in a wrong way, please!!!!!
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