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 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\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
| <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\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
| <?= | |
| GridInput::widget([ | |
| 'allModels' => $model->orderItems, | |
| 'model' => \app\models\OrderItem::className(), | |
| 'form' => $form, | |
| 'columns' => [ | |
| ['class' => 'mdm\widgets\SerialColumn'], | |
| [ | |
| 'attribute' => 'name', | |
| 'widget' => ['kartik\select2\Select2', [ |
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
| <?= | |
| GridInput::widget([ | |
| 'id' => 'detail-grid', | |
| 'allModels' => $model->items, | |
| 'model' => OrderItem::className(), | |
| 'columns' => [ | |
| ['class' => 'mdm\widgets\SerialColumn'], | |
| 'product_id', | |
| 'qty', | |
| [ |
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\web\View; | |
| use dee\angularjs\NgRoute; | |
| //use yii\helpers\Html; | |
| /* @var $this View */ | |
| ?> | |
| <div ng-app="test"> |
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; | |
| use yii\web\UploadedFile; |
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
| #include <Wire.h> | |
| #include <RealTimeClockDS1307.h> | |
| #include <EEPROM.h> | |
| #include <Keypad.h> | |
| //RealTimeClock RTC;//=new RealTimeClock(); | |
| #define SET_TIME 't' | |
| #define SWITCH_ON '1' | |
| #define SWITCH_OFF '0' |