Drupal - get program name
Posted
by ernie
on Stack Overflow
See other posts from Stack Overflow
or by ernie
Published on 2010-05-03T11:41:56Z
Indexed on
2010/05/03
11:48 UTC
Read the original article
Hit count: 415
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
© Stack Overflow or respective owner