function openid() { $this->set('title', 'OpenID'); $openid = new OpenID(); $openid->identity = 'https://www.google.com/accounts/o8/id'; $openid->return_to = $this->get('PROTOCOL') . '://' . $_SERVER['SERVER_NAME'] . '/openid2'; $this->expect($openid->auth(), '* This should not be displayed *', 'OpenID account failed authentication'); echo $this->render('basic/results.htm'); }