Return to Snippet

Revision: 27553
at June 15, 2010 19:04 by redhatmatt


Initial Code
<?php

print '<div align="left">';
print '<br/>arg-0 :' .arg(0);
print '<br/>arg-1 :' .arg(1);
print '<br/>arg-2 :' .arg(2);
print '<br/>q:' . $_GET['q'];

$view = $GLOBALS['current_view'];
$args = $view->args;

print '<br/>args-0 :' .$args[0];
print '<br/>args-1 :' .$args[1];

print '</div>';

?>

Initial URL

                                

Initial Description
To print out Drupal Arguments.

Initial Title
Drupal print url args

Initial Tags
url, drupal

Initial Language
PHP