how to use gii , controller  view , router , main.php , layout , difference between render and renderPartial