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 App\Console\Commands; | |
use Yii; | |
use Illuminate\Console\Command; | |
use App\models\larva\User as LarvaUser; | |
use app\models\yii\User as YiiUser; | |
class TestORM extends Command |
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
<h1>Welcome to CodeIgniter!</h1> | |
<div id="body"> | |
<table width="100%"> | |
<tbody> | |
<?php foreach($users as $user): ?> | |
<tr> | |
<th><?= $user->id?></th> | |
<td><?= $user->username?></td> | |
<td><?= $user->email?></td> |
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 app\controllers; | |
use Yii; | |
use mdm\upload\FileModel; | |
use yii\web\NotFoundHttpException; | |
use yii\imagine\Image; | |
use yii\helpers\FileHelper; |
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 classes\data; | |
use yii\base\Model; | |
/** | |
* Description of Helper | |
* | |
* @author Misbahul D Munir <[email protected]> |
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 app\classes; | |
use Yii; | |
use yii\db\BaseActiveRecord; | |
use yii\db\Query; | |
use yii\db\ActiveQuery; | |
use yii\helpers\Inflector; | |
use yii\helpers\StringHelper; |
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 app\classes; | |
/** | |
* Description of Db | |
* | |
* @author Misbahul D Munir <[email protected]> | |
* @since 1.0 | |
*/ |
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 app\classes; | |
use Yii; | |
use yii\base\Behavior; | |
use yii\web\User; | |
use yii\web\UserEvent; | |
use yii\di\Instance; | |
use yii\caching\Cache; |
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
<div class="row"> | |
{{ html.beginForm() | raw}} | |
{{ html.errorSummary(model) | raw}} | |
<div class="col-lg-6"> | |
<div class="form-group"> | |
{{ html.activeLabel(model, 'name', {'class': 'control-label'}) | raw}} | |
{{ html.activeTextInput(model, 'name', {'class': 'form-control'}) | raw}} | |
</div> | |
<div class="form-group"> | |
{{ html.activeLabel(model, 'email', {'class': 'control-label'}) | raw}} |
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 app\controllers; | |
use Yii; | |
use app\models\ContactInfo; | |
use yii\web\Controller; | |
use yii\filters\VerbFilter; | |
/** |
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 app\models; | |
/** | |
* Description of ContactInfo | |
* | |
* @author Misbahul D Munir <[email protected]> | |
* @since 1.0 | |
*/ |