title: Joomla Get Page Id
body: <p>I'm trying to get the current page_id, user_id and date from a Joomla 2.5.14. This is the code I'm using:</p>
  
  <pre><code>&lt;?php
  $foo = $jinput-&gt;get('id');
  echo $foo;
  
  
  $user =&amp; JFactory::getUser();
  $usr_id = $user-&gt;get('id');
  echo $usr_id;
  
  $date =&amp; JFactory::getDate();
  echo 'Current date and time is: ' . $date-&gt;toFormat() . "\n";
  
  ?&gt;
  </code></pre>
  
  <p>JFactory is working ok (I get the current user and date) but jinput is giving the error:</p>
  
  <pre><code>Notice: Undefined variable: jinput in`
  </code></pre>