Advertisement
Guest User

Untitled

a guest
Oct 24th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. use yiihelpersHtml;
  2. ?>
  3. <?= Html::encode($first_name) ?>
  4. <?= Html::encode($last_name) ?>
  5.  
  6. public function oAuthSuccess($client) {
  7. $userAttributes = $client->getUserAttributes();
  8. return $this->render('say',['first_name' => $userAttributes['first_name'],'last_name' => $userAttributes['last_name'], ]);
  9. }
  10. public function actions()
  11. {
  12. return [
  13. 'auth' => [
  14. 'class' => 'yiiauthclientAuthAction',
  15. 'successUrl'=>'url'
  16. 'successCallback' => [$this, 'oAuthSuccess'],
  17. ],
  18. ];
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement