This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace backend\modules\manager\controllers; | |
use backend\modules\manager\Controller; | |
use common\core\Core; | |
use common\models\billing\Account; | |
use common\models\billing\Transaction; | |
use common\models\billing\TransactionSearch; | |
use Yii; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use common\models\Project; | |
/* @var $this yii\web\View */ | |
/* @var $model Project */ | |
$this->title = Yii::t('app', 'General statistic'); | |
$this->params['breadcrumbs'][] = $this->title; | |
\backend\assets\FullCalendarAsset::register($this); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace tests\codeception\common\models; | |
use Codeception\Specify; | |
use common\models\AffiliateGroup; | |
use common\models\MarketplaceCategory; | |
use common\models\UserAccount; | |
use common\models\UserProfile; | |
use tests\codeception\common\fixtures\UserAccountFixture; | |
use tests\codeception\common\fixtures\UserProfileFixture; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace tests\codeception\api\v1\affiliate; | |
use common\models\Campaign; | |
use common\models\UserAccount; | |
use tests\codeception\api\FunctionalTester; | |
use tests\codeception\common\fixtures\CampaignFixture; | |
use tests\codeception\common\fixtures\UserAccountFixture; | |
class AffiliateCampaignsCest | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* @var $this \yii\web\View */ | |
/* @var $content string */ | |
use frontend\assets\AppAsset; | |
use frontend\widgets\Services; | |
use frontend\widgets\Portfolio; | |
use frontend\widgets\AboutWidget; | |
use frontend\widgets\Team; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use yii\helpers\Html; | |
use yii\widgets\ActiveForm; | |
/* @var $this yii\web\View */ | |
/* @var $model app\models\Partner */ | |
$this->title = 'Create Partner'; | |
$this->params['breadcrumbs'][] = ['label' => 'Partners', 'url' => ['index']]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use yii\widgets\ActiveForm; | |
?> | |
<?php $form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data']]) ?> | |
<?= $form->field($model, 'file')->fileInput() ?> | |
<button>Отправить</button> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--сворачиваем левый навигатор в зависимости от того авторизирован ли пользователь--> | |
<body class = "skin-green <?= (Yii::$app->user->isGuest) ? 'sidebar-collapse' : '' ?>" "> | |
<?php $this->beginBody() ?> | |
<div class="wrap"> | |
<!--в зависимости от того, авторизирован ли пользователь, добавляем соответствующий шаблон шапки--> | |
<?= (Yii::$app->user->isGuest) ? $this->render('header-guest', ['baseUrl' => $baseUrl]) : $this->render('header', ['baseUrl' => $baseUrl]) ?> | |
<?= (Yii::$app->user->isGuest) ? null : $this->render('left-menu', ['baseUrl' => $baseUrl]) ?> | |
<?= $this->render('content', ['content' => $content]) ?> | |
<?= $this->render('footer', ['baseUrl' => $baseUrl]) ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--сворачиваем левый навигатор в зависимости от того авторизирован ли пользователь--> | |
<?= (Yii::$app->user->isGuest) ? '<body class = "skin-green sidebar-collapse">' : '<body class = "skin-green">' ?> | |
<?php $this->beginBody() ?> | |
<div class="wrap"> | |
<!--в зависимости от того, авторизирован ли пользователь, добавляем соответствующий шаблон шапки--> | |
<?= (Yii::$app->user->isGuest) ? $this->render('header-guest', ['baseUrl' => $baseUrl]) : $this->render('header', ['baseUrl' => $baseUrl]) ?> | |
<?= (Yii::$app->user->isGuest) ? null : $this->render('left-menu', ['baseUrl' => $baseUrl]) ?> | |
<?= $this->render('content', ['content' => $content]) ?> | |
<?= $this->render('footer', ['baseUrl' => $baseUrl]) ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @param bool $isGuest - является ли пользователь гостем | |
*/ | |
function getHeader($isGuest) | |
{ | |
if($isGuest) | |
{ | |
} |
NewerOlder