Skip to content

Instantly share code, notes, and snippets.

@egulhan
Created October 25, 2014 14:38
Show Gist options
  • Select an option

  • Save egulhan/fa811647686521dbc0d1 to your computer and use it in GitHub Desktop.

Select an option

Save egulhan/fa811647686521dbc0d1 to your computer and use it in GitHub Desktop.
How to get current route info in Yii application
$controllerId=Yii::app()->controller->id;
$actionId=Yii::app()->controller->action->id;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment