Which class's method gets called?

HI.

If i call Yii::app()->createAbsoluteUrl() in debug mode which classes method gets called?

If i override urlManager in config file and if i override the "createAbsoluteUrl()" method in myUrlManager class then which one gets called. If the app is debug mode which one and if it is in prod mode then which one is being used?

I found 4-5 createAbsoluteUrl() methods from my IDE then i put die("") but i still alive, it does not stop.

thanks.

There are 4 createAbsoluteUrl() in yii framework files.

[list=1]

[*]CApplication::createAbsoluteUrl in CApplication.php

[*]CController::createAbsoluteUlr in CController.php

[*]CApplication::createAbsoluteUrl in yiilite.php

[*]CController::createAbsoluteUlr in yiilite.php

[/list]

If you are running your app with yii.php, then #1 or #2.

And if you are running with yiilite.php, #3 or #4.

If you are calling CApplication::createAbsoluteUrl, then the stack will be

  • CApplication::createAbsoluteUrl

[list]

  • CApplication::createUrl

[list]

  • CUrlManager::createUrl

[/list]

[/list]

If you are calling CController::createAbsoluteUrl, then the stack will be

  • CController::createAbsoluteUrl

[list]

  • CController::createUrl

[list]

  • CApplication::createUrl

[list]

  • CUrlManager::createUrl

[/list]

[/list]

[/list]

And, there’s no CUrlManager::createAbsoluteUrl() to be overridden.

I wonder what you want to do and what for.