Get All Requested Urls

Hi,

How do I get all requested urls, before to go any action.

if I wanna check somethin?

and also where to get it?

or

is there any way to redirect all urls to one action like




'rules'=>array(

    '*'=>'home/myAction',

),



make use of $this->id in your controller to get the controller name and $this->action to get the action name

>> How do I get all requested urls, before to go any action.

>> if I wanna check somethin?

or alternatively you can look at $_SERVER

this should work out of the box


'rules'=>array(

    '*'=>'home/myAction',

),

thank you for your reply,

but I need to know which controller or action before to go that controller or action.

I mean catch requested url

CApplication::onBeginRequest (http://www.yiiframework.com/doc/api/1.1/CApplication#onBeginRequest-detail)

you must simply attach your own handler (you can do it in config file)

can you give me an example?

can you google?

thank you that helps a lot!