repo
stringlengths
7
63
file_url
stringlengths
81
284
file_path
stringlengths
5
200
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:02:33
2026-01-05 05:24:06
truncated
bool
2 classes
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/backend/views/site/login.php
backend/views/site/login.php
<?php /* @var $this yii\web\View */ /* @var $form yii\bootstrap4\ActiveForm */ /* @var $model \common\models\LoginForm */ use yii\helpers\Html; use yii\bootstrap4\ActiveForm; $this->title = 'Login'; ?> <div class="row"> <div class="col-lg-6 d-none d-lg-block bg-login-image" style="background-size: cont...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/backend/views/site/forgot_password.php
backend/views/site/forgot_password.php
<?php /* @var $this yii\web\View */ /* @var $form yii\bootstrap4\ActiveForm */ /* @var $model \backend\models\PasswordResetRequestForm */ use yii\helpers\Html; use yii\bootstrap4\ActiveForm; $this->title = 'Login'; ?> <div class="row"> <div class="col-lg-6 d-none d-lg-block bg-login-image" style="backg...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/backend/views/site/index.php
backend/views/site/index.php
<?php /* @var $this yii\web\View */ /** @var float $totalEarnings */ /** @var int $totalOrders */ /** @var int $totalProducts */ /** @var int $totalUsers */ /** @var array $labels */ /** @var array $data */ /** @var array $countries */ /** @var array $countriesData */ /** @var array $bgColors */ $this->title = 'My Yi...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/backend/views/site/error.php
backend/views/site/error.php
<?php /* @var $this yii\web\View */ /* @var $name string */ /* @var $message string */ /* @var $exception Exception */ use yii\helpers\Html; $this->title = $name; ?> <div class="site-error"> <h1><?= Html::encode($this->title) ?></h1> <div class="alert alert-danger"> <?= nl2br(Html::encode($message)...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/backend/views/product/_form.php
backend/views/product/_form.php
<?php use dosamigos\ckeditor\CKEditor; use yii\helpers\Html; use yii\bootstrap4\ActiveForm; /* @var $this yii\web\View */ /* @var $model common\models\Product */ /* @var $form yii\bootstrap4\ActiveForm */ ?> <div class="product-form"> <?php $form = ActiveForm::begin([ 'options' => ['enctype' => 'mul...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/backend/views/product/view.php
backend/views/product/view.php
<?php use yii\helpers\Html; use yii\widgets\DetailView; /* @var $this yii\web\View */ /* @var $model common\models\Product */ $this->title = $model->name; $this->params['breadcrumbs'][] = ['label' => 'Products', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; \yii\web\YiiAsset::register($this); ?...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/backend/views/product/index.php
backend/views/product/index.php
<?php use yii\helpers\Html; use yii\grid\GridView; /* @var $this yii\web\View */ /* @var $searchModel backend\models\search\ProductSearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ $this->title = 'Products'; $this->params['breadcrumbs'][] = $this->title; ?> <div class="product-index"> <h1><?= Html:...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/backend/views/product/_search.php
backend/views/product/_search.php
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; /* @var $this yii\web\View */ /* @var $model backend\models\search\ProductSearch */ /* @var $form yii\widgets\ActiveForm */ ?> <div class="product-search"> <?php $form = ActiveForm::begin([ 'action' => ['index'], 'method' => 'get', ]); ...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/backend/views/product/update.php
backend/views/product/update.php
<?php use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $model common\models\Product */ $this->title = 'Update Product: ' . $model->name; $this->params['breadcrumbs'][] = ['label' => 'Products', 'url' => ['index']]; $this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/backend/views/product/create.php
backend/views/product/create.php
<?php use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $model common\models\Product */ $this->title = 'Create Product'; $this->params['breadcrumbs'][] = ['label' => 'Products', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?> <div class="product-create"> <h3><?= Html::encode($th...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/backend/views/layouts/main.php
backend/views/layouts/main.php
<?php /* @var $this \yii\web\View */ /* @var $content string */ use backend\assets\AppAsset; use yii\helpers\Html; AppAsset::register($this); ?> <?php $this->beginPage() ?> <!DOCTYPE html> <html lang="<?= Yii::$app->language ?>"> <head> <meta charset="<?= Yii::$app->charset ?>"> <meta http-equiv="X-UA-Compa...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/backend/views/layouts/blank.php
backend/views/layouts/blank.php
<?php /* @var $this \yii\web\View */ /* @var $content string */ use backend\assets\AppAsset; use common\widgets\Alert; use yii\helpers\Html; AppAsset::register($this); ?> <?php $this->beginPage() ?> <!DOCTYPE html> <html lang="<?= Yii::$app->language ?>"> <head> <meta charset="<?= Yii::$app->charset ?>"> <m...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/backend/views/order/_form.php
backend/views/order/_form.php
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; /* @var $this yii\web\View */ /* @var $model common\models\Order */ /* @var $form yii\widgets\ActiveForm */ ?> <div class="order-form"> <?php $form = ActiveForm::begin(); ?> <?= $form->field($model, 'total_price')->textInput(['maxlength' => true]) ?> ...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/backend/views/order/view.php
backend/views/order/view.php
<?php use yii\helpers\Html; use yii\widgets\DetailView; /* @var $this yii\web\View */ /* @var $model common\models\Order */ $this->title = 'Order #' . $model->id . ' details'; $this->params['breadcrumbs'][] = ['label' => 'Orders', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; \yii\web\YiiAsset:...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/backend/views/order/index.php
backend/views/order/index.php
<?php use yii\bootstrap4\Html; use yii\grid\GridView; /* @var $this yii\web\View */ /* @var $searchModel backend\models\search\OrderSearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ $this->title = 'Orders'; $this->params['breadcrumbs'][] = $this->title; ?> <div class="order-index"> <h1><?= Html::en...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/backend/views/order/_search.php
backend/views/order/_search.php
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; /* @var $this yii\web\View */ /* @var $model backend\models\search\OrderSearch */ /* @var $form yii\widgets\ActiveForm */ ?> <div class="order-search"> <?php $form = ActiveForm::begin([ 'action' => ['index'], 'method' => 'get', ]); ?> ...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/backend/views/order/update.php
backend/views/order/update.php
<?php use yii\bootstrap4\ActiveForm; use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $model common\models\Order */ $this->title = 'Update Order: ' . $model->id; $this->params['breadcrumbs'][] = ['label' => 'Orders', 'url' => ['index']]; $this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/backend/views/order/create.php
backend/views/order/create.php
<?php use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $model common\models\Order */ $this->title = 'Create Order'; $this->params['breadcrumbs'][] = ['label' => 'Orders', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?> <div class="order-create"> <h1><?= Html::encode($this->titl...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/backend/assets/AppAsset.php
backend/assets/AppAsset.php
<?php namespace backend\assets; use yii\bootstrap4\BootstrapAsset; use yii\bootstrap4\BootstrapPluginAsset; use yii\web\AssetBundle; use yii\web\JqueryAsset; /** * Main backend application asset bundle. */ class AppAsset extends AssetBundle { public $basePath = '@webroot'; public $baseUrl = '@web'; pub...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/backend/config/main.php
backend/config/main.php
<?php $params = array_merge( require __DIR__ . '/../../common/config/params.php', require __DIR__ . '/../../common/config/params-local.php', require __DIR__ . '/params.php', require __DIR__ . '/params-local.php' ); return [ 'id' => 'app-backend', 'basePath' => dirname(__DIR__), 'controllerN...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/backend/config/params.php
backend/config/params.php
<?php return [ 'adminEmail' => 'admin@example.com', ];
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/backend/config/test.php
backend/config/test.php
<?php return [ 'id' => 'app-backend-tests', 'components' => [ 'assetManager' => [ 'basePath' => __DIR__ . '/../web/assets', ], 'urlManager' => [ 'showScriptName' => true, ], 'request' => [ 'cookieValidationKey' => 'test', ], ...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/backend/config/bootstrap.php
backend/config/bootstrap.php
<?php
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/common/helpers.php
common/helpers.php
<?php /** * User: TheCodeholic * Date: 12/12/2020 * Time: 7:31 PM */ function isGuest() { return Yii::$app->user->isGuest; } function currUserId() { return Yii::$app->user->id; } function param($key) { return Yii::$app->params[$key]; }
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/common/mail/emailVerify-html.php
common/mail/emailVerify-html.php
<?php use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $user common\models\User */ $verifyLink = Yii::$app->urlManager->createAbsoluteUrl(['site/verify-email', 'token' => $user->verification_token]); ?> <div class="verify-email"> <p>Hello <?= Html::encode($user->username) ?>,</p> <p>Follow the lin...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/common/mail/passwordResetToken-text.php
common/mail/passwordResetToken-text.php
<?php /* @var $this yii\web\View */ /* @var $user common\models\User */ $resetLink = Yii::$app->urlManager->createAbsoluteUrl(['site/reset-password', 'token' => $user->password_reset_token]); ?> Hello <?= $user->username ?>, Follow the link below to reset your password: <?= $resetLink ?>
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/common/mail/emailVerify-text.php
common/mail/emailVerify-text.php
<?php /* @var $this yii\web\View */ /* @var $user common\models\User */ $verifyLink = Yii::$app->urlManager->createAbsoluteUrl(['site/verify-email', 'token' => $user->verification_token]); ?> Hello <?= $user->username ?>, Follow the link below to verify your email: <?= $verifyLink ?>
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/common/mail/order_completed_vendor-text.php
common/mail/order_completed_vendor-text.php
<?php /** * User: TheCodeholic * Date: 12/17/2020 * Time: 10:40 AM */ /** @var \common\models\Order $order */ $orderAddress = $order->orderAddress; ?> Order #<?php echo $order->id ?> summary: Account information Firstname: <?php echo $order->firstname ?> Lastname: <?php echo $order->lastname ?> Emai...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/common/mail/passwordResetToken-html.php
common/mail/passwordResetToken-html.php
<?php use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $user common\models\User */ $resetLink = Yii::$app->urlManager->createAbsoluteUrl(['site/reset-password', 'token' => $user->password_reset_token]); ?> <div class="password-reset"> <p>Hello <?= Html::encode($user->username) ?>,</p> <p>Follow th...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/common/mail/order_completed_vendor-html.php
common/mail/order_completed_vendor-html.php
<?php /** * User: TheCodeholic * Date: 12/17/2020 * Time: 10:40 AM */ /** @var \common\models\Order $order */ $orderAddress = $order->orderAddress; ?> <style> .row { display: flex; } .col { flex: 1; } </style> <h3>Order #<?php echo $order->id ?> summary: </h3> <hr> <div class="row"...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/common/mail/order_completed_customer-html.php
common/mail/order_completed_customer-html.php
<?php /** * User: TheCodeholic * Date: 12/17/2020 * Time: 10:40 AM */ /** @var \common\models\Order $order */ $orderAddress = $order->orderAddress; ?> <style> .row { display: flex; } .col { flex: 1; } </style> <h3>Order #<?php echo $order->id ?> summary: </h3> <hr> <div class="row"...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/common/mail/order_completed_customer-text.php
common/mail/order_completed_customer-text.php
<?php /** * User: TheCodeholic * Date: 12/17/2020 * Time: 10:40 AM */ /** @var \common\models\Order $order */ $orderAddress = $order->orderAddress; ?> Order #<?php echo $order->id ?> summary: Account information Firstname: <?php echo $order->firstname ?> Lastname: <?php echo $order->lastname ?> Emai...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/common/mail/layouts/text.php
common/mail/layouts/text.php
<?php use yii\helpers\Html; /** @var \yii\web\View $this view component instance */ /** @var \yii\mail\MessageInterface $message the message being composed */ /** @var string $content main view render result */ ?> <?php $this->beginPage() ?> <?php $this->beginBody() ?> <?= $content ?> <?php $this->endBody() ?> <?php...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/common/mail/layouts/html.php
common/mail/layouts/html.php
<?php use yii\helpers\Html; /* @var $this \yii\web\View view component instance */ /* @var $message \yii\mail\MessageInterface the message being composed */ /* @var $content string main view render result */ ?> <?php $this->beginPage() ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/common/fixtures/UserFixture.php
common/fixtures/UserFixture.php
<?php namespace common\fixtures; use yii\test\ActiveFixture; class UserFixture extends ActiveFixture { public $modelClass = 'common\models\User'; }
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/common/tests/_bootstrap.php
common/tests/_bootstrap.php
<?php defined('YII_DEBUG') or define('YII_DEBUG', true); defined('YII_ENV') or define('YII_ENV', 'test'); defined('YII_APP_BASE_PATH') or define('YII_APP_BASE_PATH', __DIR__.'/../../'); require_once __DIR__ . '/../../vendor/autoload.php'; require_once __DIR__ . '/../../vendor/yiisoft/yii2/Yii.php'; require __DIR__ ....
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/common/tests/_data/user.php
common/tests/_data/user.php
<?php return [ [ 'username' => 'bayer.hudson', 'auth_key' => 'HP187Mvq7Mmm3CTU80dLkGmni_FUH_lR', //password_0 'password_hash' => '$2y$13$EjaPFBnZOQsHdGuHI.xvhuDp1fHpo8hKRSk6yshqa9c5EG8s3C3lO', 'password_reset_token' => 'ExzkCOaYc1L8IOBs4wdTGGbgNiG3Wz1I_1402312317', '...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/common/tests/unit/models/LoginFormTest.php
common/tests/unit/models/LoginFormTest.php
<?php namespace common\tests\unit\models; use Yii; use common\models\LoginForm; use common\fixtures\UserFixture; /** * Login form test */ class LoginFormTest extends \Codeception\Test\Unit { /** * @var \common\tests\UnitTester */ protected $tester; /** * @return array */ publi...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/common/tests/_support/UnitTester.php
common/tests/_support/UnitTester.php
<?php namespace common\tests; /** * Inherited Methods * @method void wantToTest($text) * @method void wantTo($text) * @method void execute($callable) * @method void expectTo($prediction) * @method void expect($prediction) * @method void amGoingTo($argumentation) * @method void am($role) * @method void lookFor...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/common/models/Order.php
common/models/Order.php
<?php namespace common\models; use Yii; use yii\db\Exception; /** * This is the model class for table "{{%orders}}". * * @property int $id * @property float $total_price * @property int $status * @property string $firstname * @property string $lastname * @property string ...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/common/models/OrderItem.php
common/models/OrderItem.php
<?php namespace common\models; use Yii; /** * This is the model class for table "{{%order_items}}". * * @property int $id * @property string $product_name * @property int $product_id * @property float $unit_price * @property int $order_id * @property int $quantity * * @property Order $order * @property Pr...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/common/models/ResetPasswordForm.php
common/models/ResetPasswordForm.php
<?php namespace common\models; use yii\base\InvalidArgumentException; use yii\base\Model; use Yii; use common\models\User; /** * Password reset form */ class ResetPasswordForm extends Model { public $password; /** * @var \common\models\User */ protected $_user; /** * Creates a form...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/common/models/PasswordResetRequestForm.php
common/models/PasswordResetRequestForm.php
<?php namespace common\models; use Yii; use yii\base\Model; /** * Password reset request form */ class PasswordResetRequestForm extends Model { public $email; /** * {@inheritdoc} */ public function rules() { return [ ['email', 'trim'], ['email', 'required']...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/common/models/LoginForm.php
common/models/LoginForm.php
<?php namespace common\models; use Yii; use yii\base\Model; /** * Login form */ class LoginForm extends Model { public $username; public $password; public $rememberMe = true; protected $_user; /** * {@inheritdoc} */ public function rules() { return [ // u...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/common/models/Product.php
common/models/Product.php
<?php namespace common\models; use Yii; use yii\behaviors\BlameableBehavior; use yii\behaviors\TimestampBehavior; use yii\helpers\FileHelper; /** * This is the model class for table "{{%products}}". * * @property int $id * @property string $name * @property string|null $description * @property str...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/common/models/User.php
common/models/User.php
<?php namespace common\models; use Yii; use yii\base\NotSupportedException; use yii\behaviors\TimestampBehavior; use yii\db\ActiveRecord; use yii\web\IdentityInterface; /** * User model * * @property integer $id * @property string $firstname * @property string $lastname * @property string $username * @property...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/common/models/UserAddress.php
common/models/UserAddress.php
<?php namespace common\models; use Yii; /** * This is the model class for table "{{%user_addresses}}". * * @property int $id * @property int $user_id * @property string $address * @property string $city * @property string $state * @property string $country * @property string|null $zipcode * * @property Us...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/common/models/CartItem.php
common/models/CartItem.php
<?php namespace common\models; use Yii; /** * This is the model class for table "{{%cart_items}}". * * @property int $id * @property int $product_id * @property int $quantity * @property int|null $created_by * * @property User $createdBy * @property Product $product */ class CartItem ex...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/common/models/OrderAddress.php
common/models/OrderAddress.php
<?php namespace common\models; use Yii; /** * This is the model class for table "{{%order_addresses}}". * * @property int $order_id * @property string $address * @property string $city * @property string $state * @property string $country * @property string|null $zipcode * * @property Order $order */ clas...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/common/models/query/OrderItemQuery.php
common/models/query/OrderItemQuery.php
<?php namespace common\models\query; /** * This is the ActiveQuery class for [[\common\models\OrderItem]]. * * @see \common\models\OrderItem */ class OrderItemQuery extends \yii\db\ActiveQuery { /*public function active() { return $this->andWhere('[[status]]=1'); }*/ /** * {@inheritd...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/common/models/query/OrderAddressQuery.php
common/models/query/OrderAddressQuery.php
<?php namespace common\models\query; /** * This is the ActiveQuery class for [[\common\models\OrderAddress]]. * * @see \common\models\OrderAddress */ class OrderAddressQuery extends \yii\db\ActiveQuery { /*public function active() { return $this->andWhere('[[status]]=1'); }*/ /** * {...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/common/models/query/CartItemQuery.php
common/models/query/CartItemQuery.php
<?php namespace common\models\query; /** * This is the ActiveQuery class for [[\common\models\CartItem]]. * * @see \common\models\CartItem */ class CartItemQuery extends \yii\db\ActiveQuery { /*public function active() { return $this->andWhere('[[status]]=1'); }*/ /** * {@inheritdoc}...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/common/models/query/UserAddressQuery.php
common/models/query/UserAddressQuery.php
<?php namespace common\models\query; /** * This is the ActiveQuery class for [[\common\models\UserAddress]]. * * @see \common\models\UserAddress */ class UserAddressQuery extends \yii\db\ActiveQuery { /*public function active() { return $this->andWhere('[[status]]=1'); }*/ /** * {@in...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/common/models/query/OrderQuery.php
common/models/query/OrderQuery.php
<?php namespace common\models\query; use common\models\Order; /** * This is the ActiveQuery class for [[\common\models\Order]]. * * @see \common\models\Order */ class OrderQuery extends \yii\db\ActiveQuery { /*public function active() { return $this->andWhere('[[status]]=1'); }*/ /** ...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/common/models/query/ProductQuery.php
common/models/query/ProductQuery.php
<?php namespace common\models\query; /** * This is the ActiveQuery class for [[\common\models\Product]]. * * @see \common\models\Product */ class ProductQuery extends \yii\db\ActiveQuery { /*public function active() { return $this->andWhere('[[status]]=1'); }*/ /** * {@inheritdoc} ...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/common/i18n/Formatter.php
common/i18n/Formatter.php
<?php /** * User: TheCodeholic * Date: 12/18/2020 * Time: 10:48 AM */ namespace common\i18n; /** * Class Formatter * * @author Zura Sekhniashvili <zurasekhniashvili@gmail.com> * @package common\i18n */ class Formatter extends \yii\i18n\Formatter { public function asOrderStatus($status) { if ...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/common/widgets/Alert.php
common/widgets/Alert.php
<?php namespace common\widgets; use Yii; /** * Alert widget renders a message from session flash. All flash messages are displayed * in the sequence they were assigned using setFlash. You can set message as following: * * ```php * Yii::$app->session->setFlash('error', 'This is the message'); * Yii::$app->sessio...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/common/config/main.php
common/config/main.php
<?php require_once __DIR__.'/../../common/helpers.php'; return [ 'aliases' => [ '@bower' => '@vendor/bower-asset', '@npm' => '@vendor/npm-asset', ], 'vendorPath' => dirname(dirname(__DIR__)) . '/vendor', 'components' => [ 'cache' => [ 'class' => 'yii\caching\FileCa...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/common/config/params.php
common/config/params.php
<?php return [ 'adminEmail' => 'admin@example.com', 'supportEmail' => 'support@example.com', 'senderEmail' => 'noreply@example.com', 'senderName' => 'Example.com mailer', 'user.passwordResetTokenExpire' => 3600, 'user.passwordMinLength' => 8, ];
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/common/config/test.php
common/config/test.php
<?php return [ 'id' => 'app-common-tests', 'basePath' => dirname(__DIR__), 'components' => [ 'user' => [ 'class' => 'yii\web\User', 'identityClass' => 'common\models\User', ], ], ];
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/common/config/bootstrap.php
common/config/bootstrap.php
<?php Yii::setAlias('@common', dirname(__DIR__)); Yii::setAlias('@frontend', dirname(dirname(__DIR__)) . '/frontend'); Yii::setAlias('@backend', dirname(dirname(__DIR__)) . '/backend'); Yii::setAlias('@console', dirname(dirname(__DIR__)) . '/console');
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/common/grid/ActionColumn.php
common/grid/ActionColumn.php
<?php /** * User: TheCodeholic * Date: 11/28/2020 * Time: 9:45 AM */ namespace common\grid; use Yii; use yii\helpers\Html; /** * Class ActionColumn * * @author Zura Sekhniashvili <zurasekhniashvili@gmail.com> * @package app\grid */ class ActionColumn extends \yii\grid\ActionColumn { protected function...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/base/Controller.php
frontend/base/Controller.php
<?php /** * User: TheCodeholic * Date: 12/12/2020 * Time: 7:04 PM */ namespace frontend\base; use common\models\CartItem; /** * Class Controller * * @author Zura Sekhniashvili <zurasekhniashvili@gmail.com> * @package frontend\base */ class Controller extends \yii\web\Controller { public function befor...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/tests/_bootstrap.php
frontend/tests/_bootstrap.php
<?php defined('YII_DEBUG') or define('YII_DEBUG', true); defined('YII_ENV') or define('YII_ENV', 'test'); defined('YII_APP_BASE_PATH') or define('YII_APP_BASE_PATH', __DIR__.'/../../'); require_once YII_APP_BASE_PATH . '/vendor/autoload.php'; require_once YII_APP_BASE_PATH . '/vendor/yiisoft/yii2/Yii.php'; require_onc...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/tests/_data/user.php
frontend/tests/_data/user.php
<?php return [ [ 'username' => 'okirlin', 'auth_key' => 'iwTNae9t34OmnK6l4vT4IeaTk-YWI2Rv', 'password_hash' => '$2y$13$CXT0Rkle1EMJ/c1l5bylL.EylfmQ39O5JlHJVFpNn618OUS1HwaIi', 'password_reset_token' => 't5GU9NwpuGYSfb7FEZMAxqtuz2PkEvv_' . time(), 'created_at' => '1391885313',...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/tests/_data/login_data.php
frontend/tests/_data/login_data.php
<?php return [ [ 'username' => 'erau', 'auth_key' => 'tUu1qHcde0diwUol3xeI-18MuHkkprQI', // password_0 'password_hash' => '$2y$13$nJ1WDlBaGcbCdbNC5.5l4.sgy.OMEKCqtDQOdQ2OWpgiKRWYyzzne', 'password_reset_token' => 'RkD_Jw0_8HEedzLk7MM-ZKEFfYR7VbMr_1392559490', 'created_...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/tests/acceptance/HomeCest.php
frontend/tests/acceptance/HomeCest.php
<?php namespace frontend\tests\acceptance; use frontend\tests\AcceptanceTester; use yii\helpers\Url; class HomeCest { public function checkHome(AcceptanceTester $I) { $I->amOnPage(Url::toRoute('/site/index')); $I->see('My Application'); $I->seeLink('About'); $I->click('About')...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/tests/acceptance/_bootstrap.php
frontend/tests/acceptance/_bootstrap.php
<?php /** * Here you can initialize variables via \Codeception\Util\Fixtures class * to store data in global array and use it in Cepts. * * ```php * // Here _bootstrap.php * \Codeception\Util\Fixtures::add('user1', ['name' => 'davert']); * ``` * * In Cept * * ```php * \Codeception\Util\Fixtures::get('user1'...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/tests/unit/_bootstrap.php
frontend/tests/unit/_bootstrap.php
<?php /** * Here you can initialize variables via \Codeception\Util\Fixtures class * to store data in global array and use it in Tests. * * ```php * // Here _bootstrap.php * \Codeception\Util\Fixtures::add('user1', ['name' => 'davert']); * ``` * * In Tests * * ```php * \Codeception\Util\Fixtures::get('user1...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/tests/unit/models/ResetPasswordFormTest.php
frontend/tests/unit/models/ResetPasswordFormTest.php
<?php namespace frontend\tests\unit\models; use common\fixtures\UserFixture; use frontend\models\ResetPasswordForm; class ResetPasswordFormTest extends \Codeception\Test\Unit { /** * @var \frontend\tests\UnitTester */ protected $tester; public function _before() { $this->tester->h...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/tests/unit/models/VerifyEmailFormTest.php
frontend/tests/unit/models/VerifyEmailFormTest.php
<?php namespace frontend\tests\unit\models; use common\fixtures\UserFixture; use frontend\models\VerifyEmailForm; class VerifyEmailFormTest extends \Codeception\Test\Unit { /** * @var \frontend\tests\UnitTester */ protected $tester; public function _before() { $this->tester->haveF...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/tests/unit/models/ResendVerificationEmailFormTest.php
frontend/tests/unit/models/ResendVerificationEmailFormTest.php
<?php namespace frontend\tests\unit\models; use Codeception\Test\Unit; use common\fixtures\UserFixture; use frontend\models\ResendVerificationEmailForm; class ResendVerificationEmailFormTest extends Unit { /** * @var \frontend\tests\UnitTester */ protected $tester; public function _before() ...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/tests/unit/models/ContactFormTest.php
frontend/tests/unit/models/ContactFormTest.php
<?php namespace frontend\tests\unit\models; use frontend\models\ContactForm; use yii\mail\MessageInterface; class ContactFormTest extends \Codeception\Test\Unit { public function testSendEmail() { $model = new ContactForm(); $model->attributes = [ 'name' => 'Tester', '...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/tests/unit/models/PasswordResetRequestFormTest.php
frontend/tests/unit/models/PasswordResetRequestFormTest.php
<?php namespace frontend\tests\unit\models; use Yii; use frontend\models\PasswordResetRequestForm; use common\fixtures\UserFixture as UserFixture; use common\models\User; class PasswordResetRequestFormTest extends \Codeception\Test\Unit { /** * @var \frontend\tests\UnitTester */ protected $tester; ...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/tests/unit/models/SignupFormTest.php
frontend/tests/unit/models/SignupFormTest.php
<?php namespace frontend\tests\unit\models; use common\fixtures\UserFixture; use frontend\models\SignupForm; class SignupFormTest extends \Codeception\Test\Unit { /** * @var \frontend\tests\UnitTester */ protected $tester; public function _before() { $this->tester->haveFixtures([ ...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/tests/_support/UnitTester.php
frontend/tests/_support/UnitTester.php
<?php namespace frontend\tests; /** * Inherited Methods * @method void wantToTest($text) * @method void wantTo($text) * @method void execute($callable) * @method void expectTo($prediction) * @method void expect($prediction) * @method void amGoingTo($argumentation) * @method void am($role) * @method void lookF...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/tests/_support/FunctionalTester.php
frontend/tests/_support/FunctionalTester.php
<?php namespace frontend\tests; /** * Inherited Methods * @method void wantToTest($text) * @method void wantTo($text) * @method void execute($callable) * @method void expectTo($prediction) * @method void expect($prediction) * @method void amGoingTo($argumentation) * @method void am($role) * @method void lookF...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/tests/functional/HomeCest.php
frontend/tests/functional/HomeCest.php
<?php namespace frontend\tests\functional; use frontend\tests\FunctionalTester; class HomeCest { public function checkOpen(FunctionalTester $I) { $I->amOnPage(\Yii::$app->homeUrl); $I->see('My Application'); $I->seeLink('About'); $I->click('About'); $I->see('This is th...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/tests/functional/SignupCest.php
frontend/tests/functional/SignupCest.php
<?php namespace frontend\tests\functional; use frontend\tests\FunctionalTester; class SignupCest { protected $formId = '#form-signup'; public function _before(FunctionalTester $I) { $I->amOnRoute('site/signup'); } public function signupWithEmptyFields(FunctionalTester $I) { ...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/tests/functional/ContactCest.php
frontend/tests/functional/ContactCest.php
<?php namespace frontend\tests\functional; use frontend\tests\FunctionalTester; /* @var $scenario \Codeception\Scenario */ class ContactCest { public function _before(FunctionalTester $I) { $I->amOnPage(['site/contact']); } public function checkContact(FunctionalTester $I) { $I->...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/tests/functional/LoginCest.php
frontend/tests/functional/LoginCest.php
<?php namespace frontend\tests\functional; use frontend\tests\FunctionalTester; use common\fixtures\UserFixture; class LoginCest { /** * Load fixtures before db transaction begin * Called in _before() * @see \Codeception\Module\Yii2::_before() * @see \Codeception\Module\Yii2::loadFixtures() ...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/tests/functional/_bootstrap.php
frontend/tests/functional/_bootstrap.php
<?php /** * Here you can initialize variables via \Codeception\Util\Fixtures class * to store data in global array and use it in Cests. * * ```php * // Here _bootstrap.php * \Codeception\Util\Fixtures::add('user1', ['name' => 'davert']); * ``` * * In Cests * * ```php * \Codeception\Util\Fixtures::get('user1...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/tests/functional/AboutCest.php
frontend/tests/functional/AboutCest.php
<?php namespace frontend\tests\functional; use frontend\tests\FunctionalTester; class AboutCest { public function checkAbout(FunctionalTester $I) { $I->amOnRoute('site/about'); $I->see('About', 'h1'); } }
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/tests/functional/VerifyEmailCest.php
frontend/tests/functional/VerifyEmailCest.php
<?php namespace frontend\tests\functional; use common\fixtures\UserFixture; use frontend\tests\FunctionalTester; class VerifyEmailCest { /** * Load fixtures before db transaction begin * Called in _before() * @see \Codeception\Module\Yii2::_before() * @see \Codeception\Module\Yii2::loadFixtur...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/tests/functional/ResendVerificationEmailCest.php
frontend/tests/functional/ResendVerificationEmailCest.php
<?php namespace frontend\tests\functional; use common\fixtures\UserFixture; use frontend\tests\FunctionalTester; class ResendVerificationEmailCest { protected $formId = '#resend-verification-email-form'; /** * Load fixtures before db transaction begin * Called in _before() * @see \Codeceptio...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/controllers/ProfileController.php
frontend/controllers/ProfileController.php
<?php /** * User: TheCodeholic * Date: 12/12/2020 * Time: 3:25 PM */ namespace frontend\controllers; use common\models\User; use Yii; use yii\filters\AccessControl; use yii\web\Controller; use yii\web\ForbiddenHttpException; /** * Class ProfileController * * @author Zura Sekhniashvili <zurasekhniashvili@gma...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/controllers/SiteController.php
frontend/controllers/SiteController.php
<?php namespace frontend\controllers; use common\models\Product; use common\models\UserAddress; use frontend\models\ResendVerificationEmailForm; use frontend\models\VerifyEmailForm; use Yii; use yii\base\InvalidArgumentException; use yii\data\ActiveDataProvider; use yii\web\BadRequestHttpException; use yii\web\Control...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/controllers/CartController.php
frontend/controllers/CartController.php
<?php /** * User: TheCodeholic * Date: 12/12/2020 * Time: 3:32 PM */ namespace frontend\controllers; use common\models\CartItem; use common\models\Order; use common\models\OrderAddress; use common\models\Product; use PayPalCheckoutSdk\Core\PayPalHttpClient; use PayPalCheckoutSdk\Core\SandboxEnvironment; use PayP...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/models/ResetPasswordForm.php
frontend/models/ResetPasswordForm.php
<?php namespace frontend\models; /** * Password reset form */ class ResetPasswordForm extends \common\models\ResetPasswordForm { }
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/models/PasswordResetRequestForm.php
frontend/models/PasswordResetRequestForm.php
<?php namespace frontend\models; /** * Password reset request form */ class PasswordResetRequestForm extends \common\models\PasswordResetRequestForm { }
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/models/ContactForm.php
frontend/models/ContactForm.php
<?php namespace frontend\models; use Yii; use yii\base\Model; /** * ContactForm is the model behind the contact form. */ class ContactForm extends Model { public $name; public $email; public $subject; public $body; public $verifyCode; /** * {@inheritdoc} */ public function r...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/models/ResendVerificationEmailForm.php
frontend/models/ResendVerificationEmailForm.php
<?php namespace frontend\models; use Yii; use common\models\User; use yii\base\Model; class ResendVerificationEmailForm extends Model { /** * @var string */ public $email; /** * {@inheritdoc} */ public function rules() { return [ ['email', 'trim'], ...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/models/VerifyEmailForm.php
frontend/models/VerifyEmailForm.php
<?php namespace frontend\models; use common\models\User; use yii\base\InvalidArgumentException; use yii\base\Model; class VerifyEmailForm extends Model { /** * @var string */ public $token; /** * @var User */ private $_user; /** * Creates a form model with given token....
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/models/SignupForm.php
frontend/models/SignupForm.php
<?php namespace frontend\models; use Yii; use yii\base\Model; use common\models\User; /** * Signup form */ class SignupForm extends Model { public $firstname; public $lastname; public $username; public $email; public $password; /** * {@inheritdoc} */ public function rules() ...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/views/site/resendVerificationEmail.php
frontend/views/site/resendVerificationEmail.php
<?php /* @var $this yii\web\View */ /* @var $form yii\bootstrap4\ActiveForm */ /* @var $model \frontend\models\ResetPasswordForm */ use yii\helpers\Html; use yii\bootstrap4\ActiveForm; $this->title = 'Resend verification email'; $this->params['breadcrumbs'][] = $this->title; ?> <div class="site-resend-verification-e...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/views/site/_product_item.php
frontend/views/site/_product_item.php
<?php /** * User: TheCodeholic * Date: 12/12/2020 * Time: 11:53 AM */ /** @var \common\models\Product $model */ ?> <div class="card h-100"> <a href="#" class="img-wrapper"> <img class="card-img-top" src="<?php echo $model->getImageUrl() ?>" alt=""> </a> <div class="card-body"...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/views/site/requestPasswordResetToken.php
frontend/views/site/requestPasswordResetToken.php
<?php /* @var $this yii\web\View */ /* @var $form yii\bootstrap4\ActiveForm */ /* @var $model \frontend\models\PasswordResetRequestForm */ use yii\helpers\Html; use yii\bootstrap4\ActiveForm; $this->title = 'Request password reset'; $this->params['breadcrumbs'][] = $this->title; ?> <div class="site-request-password...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/views/site/signup.php
frontend/views/site/signup.php
<?php /* @var $this yii\web\View */ /* @var $form yii\bootstrap4\ActiveForm */ /* @var $model \frontend\models\SignupForm */ use yii\helpers\Html; use yii\bootstrap4\ActiveForm; $this->title = 'Signup'; $this->params['breadcrumbs'][] = $this->title; ?> <div class="site-signup"> <div class="row justify-content-...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/views/site/login.php
frontend/views/site/login.php
<?php /* @var $this yii\web\View */ /* @var $form yii\bootstrap4\ActiveForm */ /* @var $model \common\models\LoginForm */ use yii\helpers\Html; use yii\bootstrap4\ActiveForm; $this->title = 'Login'; $this->params['breadcrumbs'][] = $this->title; ?> <div class="site-login"> <div class="row justify-content-center...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false
thecodeholic/yii2-ecommerce-website
https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/views/site/index.php
frontend/views/site/index.php
<?php /* @var $this yii\web\View */ /** @var \yii\data\ActiveDataProvider $dataProvider */ $this->title = 'My Yii Application'; ?> <div class="site-index"> <div class="body-content"> <?php echo \yii\widgets\ListView::widget([ 'dataProvider' => $dataProvider, 'layout' => '{summary...
php
BSD-3-Clause
11e6f2c1b010a67c28f9c46e5df951d9c5aea07d
2026-01-05T02:41:44.027017Z
false