Drupal - get program name
- by ernie
I would like to get program name in Drupal (actually name in URL that calls program or function).
example:
http://localhost/drupal6/my_widget
This works:
$myURL = (basename($_SERVER['REQUEST_URI'])); // $myURL=my_widget
but not when I have additional parameters:
http://localhost/drupal6/my_widget/parm1/parm2