Skip to content

Instantly share code, notes, and snippets.

@Atorich
Created November 30, 2012 13:11
Show Gist options
  • Save Atorich/4175667 to your computer and use it in GitHub Desktop.
Save Atorich/4175667 to your computer and use it in GitHub Desktop.
//EUrlManager (ext. CUrlManager)
public function parseUrl(CHttpRequest $request) {
$route = parent::parseUrl($request);
CVarDumper::dump(array($route, $request->getUrl()), 10, 1);
return parent::parseUrl($request);
}
//output:
array
(
0 => 'site/history'
1 => '/history'
)
//EMenu (ext. CMenu)
protected function isItemActive($item, $route) {
$url = $item['url'][0];
CVarDumper::dump(array($route), 10, 1);
return parent::isItemActive($item, $route);
}
//output:
array
(
0 => 'site'
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment