Hello Every One
I have created Behaviour for forcing Login Request
My Behaviour code
<?php
class ApplicationBehavior extends CBehavior
{
private $_owner;
public function events()
{
return array('onBeginRequest'=>'denyEverything',);
}
public function denyEverything()
{
$owner=$this->getOwner();
if($owner->user->getIsGuest())
$owner->catchAllRequest=array("user/login");
}
}
?>
Now I want to call Api That is controller Action like
example.com/site/api but its require login for me
how can i overcome this situation???
i want use this only for Api call(Request from Mobile App).