title: joomla 3.0 Call to undefined method JUtility::getToken()
body: <p>I got this error while creating a joomla logout link. Here is my code please help</p>
  
  <pre><code>                        if($user-&gt;id){
                              $token = JUtility::getToken();
                              $linkout = JRoute::_("index.php?option=com_users&amp;task=user.logout&amp;".$token."=1");
  </code></pre>
  
  <p>}
  and echo $linkout to anchor tag</p>