redirect works like render...

in "cityControler" I have this code:


class CityController extends Controller 

{	

public function init () { 

	if(Yii::app()->user->isGuest)  {$this->redirect(Yii::app()->homeUrl); return false;}

	Yii:: app () -> theme = "defaultCityTheme";

	parent:: init ();

}

....

when it calls the action to load the code into a new "DIV", the start page loads. This works like a normal render, what do I do this to be true to redirect

redirect redirects the browser to the specified URL, so it’s normal it renders the whole page - http://www.yiiframework.com/doc/api/1.1/CController#redirect-detail

depending on your need maybe you should use render or renderpartial…