Elfange
(Evangelis12)
1
Hello 
I’m just starting with Yii and I followed the tutorial to create a blog application.
I find Yii very useful and I want to continue to learn how to work with it in the best way !
I’m starting the application I have to do, I created my mysql tables and with gii the model and crud class.
Now, I want to integrate a login form in the header of my site and an ajax checkbox which will let the user select a column from a table.
What is the best way to do it ? I looked in view insertion and widget but it doesn’t work …
Thx for your reply (and sorry for my English, I’m french
)
perochak
(Amjad Mughal)
2
Check the file
views/layouts/main.php
and set there the view of login page using renderPartial
Elfange
(Evangelis12)
3
Thx for your reply 
I tried :
<?php
$this->renderPartial('login', array(
'model' => $this,
));
?>
Buth $this don’t work as model (method isAttributeRequired undefined on SiteController)
What do I have to put then ?
Elfange
(Evangelis12)
4
I’ve found for my first problem ^^ I replace $this by “new LoginForm()”
But I think I found better : http://www.yiiframework.com/extension/login/