Browse Source

Doc comments at "yii\authclient\widgets\Choice" fixed

tags/2.0.0-beta
Klimov Paul 11 years ago
parent
commit
6f9850774d
  1. 9
      extensions/yii/authclient/widgets/Choice.php

9
extensions/yii/authclient/widgets/Choice.php

@ -26,12 +26,15 @@ use yii\authclient\ClientInterface;
* ]); ?> * ]); ?>
* ~~~ * ~~~
* *
* You can customize the widget appearance by using [[beginWidget()]] and [[endWidget()]] syntax * You can customize the widget appearance by using [[begin()]] and [[end()]] syntax
* along with using method {@link clientLink()} or {@link createClientUrl()}. * along with using method {@link clientLink()} or {@link createClientUrl()}.
* For example: * For example:
* *
* ~~~php * ~~~php
* <?php $authChoice = yii\authclient\widgets\Choice::beginWidget([ * <?php
* use yii\authclient\widgets\Choice;
* ?>
* <?php $authChoice = Choice::begin([
* 'baseAuthUrl' => ['site/auth'] * 'baseAuthUrl' => ['site/auth']
* ]); ?> * ]); ?>
* <ul> * <ul>
@ -39,7 +42,7 @@ use yii\authclient\ClientInterface;
* <li><?= $authChoice->clientLink($client); ?></li> * <li><?= $authChoice->clientLink($client); ?></li>
* <?php endforeach; ?> * <?php endforeach; ?>
* </ul> * </ul>
* <?php yii\authclient\widgets\Choice::endWidget(); ?> * <?php Choice::end(); ?>
* ~~~ * ~~~
* *
* This widget supports following keys for [[ClientInterface::getViewOptions()]] result: * This widget supports following keys for [[ClientInterface::getViewOptions()]] result:

Loading…
Cancel
Save