Пример #1
0
<?php

/**
 *   _   __ __ _____ _____ ___  ____  _____
 *  | | / // // ___//_  _//   ||  __||_   _|
 *  | |/ // /(__  )  / / / /| || |     | |
 *  |___//_//____/  /_/ /_/ |_||_|     |_|
 * @link http://vistart.name/
 * @copyright Copyright (c) 2016 vistart
 * @license http://vistart.name/license/
 */
/* @var $this yii\web\View */
use rho\modules\api\controllers\AuthorizeController;
$this->title = AuthorizeController::t('', 'Error');
?>
<h1>authorize/error</h1>

<p>
    You may change the content of this page by modifying
    the file <code><?php 
echo __FILE__;
?>
</code>.
<?php 
var_dump($result);
?>
</p>
Пример #2
0
<?php

/**
 *   _   __ __ _____ _____ ___  ____  _____
 *  | | / // // ___//_  _//   ||  __||_   _|
 *  | |/ // /(__  )  / / / /| || |     | |
 *  |___//_//____/  /_/ /_/ |_||_|     |_|
 * @link http://vistart.name/
 * @copyright Copyright (c) 2016 vistart
 * @license http://vistart.name/license/
 */
/* @var $this yii\web\View */
use rho\modules\api\controllers\AuthorizeController;
use yii\widgets\ActiveForm;
use yii\helpers\Html;
$this->title = AuthorizeController::t('', 'Authorize');
?>
<h1><?php 
echo AuthorizeController::t('', 'Authorize to third party:');
?>
</h1>
<!-- Authorize Form Begin -->
<?php 
$form = ActiveForm::begin();
echo $form->field($authorize_model, 'agree')->hiddenInput();
echo Html::submitButton(AuthorizeController::t('', 'Authorize'), ['class' => 'btn btn-primary']);
ActiveForm::end();
?>
<!-- Authorize Form End -->