From 0b099e17d5a58edb4096e38861230224bfbb4129 Mon Sep 17 00:00:00 2001 From: cornernote Date: Tue, 11 Aug 2015 21:07:47 +0930 Subject: [PATCH] test --- README.md | 12 ++++++++++++ src/controllers/ModController.php | 9 +++++++++ 2 files changed, 21 insertions(+) diff --git a/README.md b/README.md index 6aea85e..2f9543c 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,18 @@ Run migrations: heroku run php /app/yii migrate/up --interactive=0 ``` +Bash: + +``` +heroku run bash +``` + +Bash with vim + +``` +heroku vim +``` + View database: ``` diff --git a/src/controllers/ModController.php b/src/controllers/ModController.php index 5420315..40f42c9 100644 --- a/src/controllers/ModController.php +++ b/src/controllers/ModController.php @@ -99,4 +99,13 @@ class ModController extends Controller throw new NotFoundHttpException('The requested page does not exist.'); } } + + public function actionTest() + { + $model = Package::find()->where(['name' => 'skyblock'])->one(); + $model->harvestModInfo(); + print_r($model->getDirtyAttributes()); + die; + } + }