Yii Ajax Post Asks To Login

I am trying to setup ajax request to controller/action but each time I get Login Required. I have allowed all users to call that action but the user should not be required to login. Is this some Yii magic or I am doing something wrong

Hi,

Have you used like this

		array('allow',  


			'actions'=>array('index','view'[size=2]),[/size]


			'users'=>array('*'),


		),

if yes…it should work… if doesnt work then try by removing everything :)

I’ve tried that but it doesn’t work. I found out that I always get the content of loginRequiredAjaxResponse. So if I assign value to loginRequiredAjaxResponse in my action then I get that assigned value. I am not sure under what conditions loginRequiredAjaxResponse gets used in yii




//In your controller :

public function accessRules()

	{

		return array(

			array('allow',  // allow all users to perform 'YourAction' actions

				'actions'=>array('YourAction'),

				'users'=>array('*'),

			),

		);

	}



Done and it doesn’t help