From 6c1bed3d26fc9e8d9ec1031f8d16359d8b400798 Mon Sep 17 00:00:00 2001
From: Jose Lorenzo Rodriguez
Date: Sat, 3 Nov 2012 15:31:31 +0900
Subject: [PATCH] Adding warning to home.ctp when DebugKit is not installed
Adding a list of official plugins to home.ctp Removing old link to
live.cakephp.org and replacing it with plugins.cakephp.org
---
app/View/Pages/home.ctp | 41 ++++++++++++++++---
.../Templates/skel/View/Pages/home.ctp | 41 ++++++++++++++++---
2 files changed, 72 insertions(+), 10 deletions(-)
diff --git a/app/View/Pages/home.ctp b/app/View/Pages/home.ctp
index 9a229232c31..93d017f445d 100644
--- a/app/View/Pages/home.ctp
+++ b/app/View/Pages/home.ctp
@@ -15,7 +15,7 @@
* @since CakePHP(tm) v 0.10.0.1076
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
-if (Configure::read('debug') == 0):
+if (!Configure::read('debug')):
throw new NotFoundException();
endif;
App::uses('Debugger', 'Utility');
@@ -116,7 +116,7 @@ if (isset($filePresent)):
endif;
?>
-
+
';
}
?>
+
+
+ ';
+ echo __d('cake_dev', 'DebugKit plugin is present');
+ echo '';
+ else:
+ echo '';
+ echo __d('cake_dev', 'DebugKit is not installed. It will help you inspect and debug different aspects of your application.');
+ echo '
';
+ echo __d('cake_dev', 'You can install it from %s', $this->Html->link('github', 'https://github.com/cakephp/debug_kit'));
+ echo '';
+ endif;
+ ?>
+
+
+
+
+
+ -
+ Html->link('DebugKit', 'https://github.com/cakephp/debug_kit') ?>:
+
+
+ -
+ Html->link('Localized', 'https://github.com/cakephp/localized') ?>:
+
+
+
+
+
@@ -175,8 +206,8 @@ You can also add some CSS styles for your pages at: APP/webroot/css.');
-
-
+
+
irc.freenode.net #cakephp
@@ -185,4 +216,4 @@ You can also add some CSS styles for your pages at: APP/webroot/css.');
-
+
\ No newline at end of file
diff --git a/lib/Cake/Console/Templates/skel/View/Pages/home.ctp b/lib/Cake/Console/Templates/skel/View/Pages/home.ctp
index 955053df306..93d017f445d 100644
--- a/lib/Cake/Console/Templates/skel/View/Pages/home.ctp
+++ b/lib/Cake/Console/Templates/skel/View/Pages/home.ctp
@@ -127,11 +127,28 @@ if (isset($filePresent)):
echo '';
}
?>
+
+
+ ';
+ echo __d('cake_dev', 'DebugKit plugin is present');
+ echo '';
+ else:
+ echo '';
+ echo __d('cake_dev', 'DebugKit is not installed. It will help you inspect and debug different aspects of your application.');
+ echo '
';
+ echo __d('cake_dev', 'You can install it from %s', $this->Html->link('github', 'https://github.com/cakephp/debug_kit'));
+ echo '';
+ endif;
+ ?>
+
+
-To change its layout, create: APP/View/Layouts/default.ctp.
+echo __d('cake_dev', 'To change the content of this page, edit: APP/View/Pages/home.ctp.
+To change its layout, edit: APP/View/Layouts/default.ctp.
You can also add some CSS styles for your pages at: APP/webroot/css.');
?>
@@ -156,6 +173,20 @@ You can also add some CSS styles for your pages at: APP/webroot/css.');
?>
+
+
+
+ -
+ Html->link('DebugKit', 'https://github.com/cakephp/debug_kit') ?>:
+
+
+ -
+ Html->link('Localized', 'https://github.com/cakephp/localized') ?>:
+
+
+
+
+
@@ -175,8 +206,8 @@ You can also add some CSS styles for your pages at: APP/webroot/css.');
-
-
+
+
irc.freenode.net #cakephp
@@ -185,4 +216,4 @@ You can also add some CSS styles for your pages at: APP/webroot/css.');
-
+
\ No newline at end of file