From 0841e5d1ac8b38261385d5fc89754f30e7a43209 Mon Sep 17 00:00:00 2001 From: diggy Date: Sun, 15 Mar 2015 17:28:39 +0100 Subject: [PATCH 1/4] patch APP slash --- application/core/controller.php | 2 +- public/index.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/application/core/controller.php b/application/core/controller.php index 69a41305..dd9558bf 100644 --- a/application/core/controller.php +++ b/application/core/controller.php @@ -43,7 +43,7 @@ private function openDatabaseConnection() */ public function loadModel() { - require APP . '/model/model.php'; + require APP . 'model/model.php'; // create new "model" (and pass the database connection) $this->model = new Model($this->db); } diff --git a/public/index.php b/public/index.php index 0dee1396..396cf771 100644 --- a/public/index.php +++ b/public/index.php @@ -25,15 +25,15 @@ } // load application config (error reporting etc.) -require APP . '/config/config.php'; +require APP . 'config/config.php'; // FOR DEVELOPMENT: this loads PDO-debug, a simple function that shows the SQL query (when using PDO). // If you want to load pdoDebug via Composer, then have a look here: https://github.com/panique/pdo-debug -require APP . '/libs/helper.php'; +require APP . 'libs/helper.php'; // load application class -require APP . '/core/application.php'; -require APP . '/core/controller.php'; +require APP . 'core/application.php'; +require APP . 'core/controller.php'; // start the application $app = new Application(); From c77fccfff008565afbdf35005bd5737e6d544a45 Mon Sep 17 00:00:00 2001 From: Dima Freimuth Date: Wed, 18 Mar 2015 22:20:54 +0100 Subject: [PATCH 2/4] shows error reporting, only in development --- application/config/config.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/application/config/config.php b/application/config/config.php index 3a3e9423..3c2f3214 100644 --- a/application/config/config.php +++ b/application/config/config.php @@ -10,8 +10,12 @@ * Configuration for: Error reporting * Useful to show every little problem during development, but only show hard errors in production */ -error_reporting(E_ALL); -ini_set("display_errors", 1); +define('ENVIRONMENT', 'development'); + +if (ENVIRONMENT == 'development' || ENVIRONMENT == 'dev') { + error_reporting(E_ALL); + ini_set("display_errors", 1); +} /** * Configuration for: URL From ad74fe25c6d62b45f0bc46b0868d6e002663e422 Mon Sep 17 00:00:00 2001 From: Chris Date: Sat, 23 May 2015 23:21:56 +0200 Subject: [PATCH 3/4] added new affiliate link --- README.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 315da016..1fe2cd0a 100644 --- a/README.md +++ b/README.md @@ -162,15 +162,12 @@ Follow the repo on [Facebook](https://www.facebook.com/pages/MINI-a-supersimple- ## Support -If you want to support MINI, then rent your next server at -[A2Hosting](https://affiliates.a2hosting.com/idevaffiliate.php?id=4471&url=579) or donate a coffee via -[PayPal](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=P5YLUK4MW3LDG), -[GitTip](https://www.gittip.com/Panique/) or -[Flattr](https://flattr.com/submit/auto?user_id=panique&url=https%3A%2F%2Fgithub.com%2Fpanique%2Fmini). +If you want to support MINI, then rent your next server at [Host1Plus](https://affiliates.host1plus.com/ref/devmetal/36f4d828.html). +Thanks! :) ## TODO: documentation -coming soon +Yeah, maybe in the future when there's some time... ## Quick-Start From 32cd992a87c7a03e9001a538616fc5806e75ddf8 Mon Sep 17 00:00:00 2001 From: Chris Date: Sat, 23 May 2015 23:22:48 +0200 Subject: [PATCH 4/4] added blog link --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 1fe2cd0a..2e6beb50 100644 --- a/README.md +++ b/README.md @@ -159,6 +159,7 @@ This means you can use and modify it for free in private or commercial projects. ## Follow on Facebook Follow the repo on [Facebook](https://www.facebook.com/pages/MINI-a-supersimple-PHP-application/1488883564703966). +And by the way, I'm also blogging at [Dev Metal](http://www.dev-metal.com). ## Support