diff --git a/app/View/Pages/home.ctp b/app/View/Pages/home.ctp index 98533322a..d6b365a62 100644 --- a/app/View/Pages/home.ctp +++ b/app/View/Pages/home.ctp @@ -3,23 +3,15 @@ * * PHP 5 * - * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) - * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) - * - * Licensed under The MIT License - * For full copyright and license information, please see the LICENSE.txt - * Redistributions of files must retain the above copyright notice. - * - * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://cakephp.org CakePHP(tm) Project * @package app.View.Pages * @since CakePHP(tm) v 0.10.0.1076 - * @license http://www.opensource.org/licenses/mit-license.php MIT License */ if (!Configure::read('debug')): throw new NotFoundException(); endif; + App::uses('Debugger', 'Utility'); ?>
@@ -31,11 +23,17 @@ if (Configure::read('debug') > 0): Debugger::checkSecurityKeys(); endif; ?> +1) Help me configure it 2) I don't / can't use URL rewriting
+
=')):
@@ -67,11 +65,11 @@ endif;
$settings = Cache::settings();
if (!empty($settings)):
echo '';
- echo __d('cake_dev', 'The %s is being used for core caching. To change the config edit APP/Config/core.php ', '' . $settings['engine'] . 'Engine');
+ echo __d('cake_dev', 'The %s is being used for core caching. To change the config edit %s', ''. $settings['engine'] . 'Engine', 'APP/Config/core.php');
echo '';
else:
echo '';
- echo __d('cake_dev', 'Your cache is NOT working. Please check the settings in APP/Config/core.php');
+ echo __d('cake_dev', 'Your cache is NOT working. Please check the settings in %s', 'APP/Config/core.php');
echo '';
endif;
?>
@@ -88,7 +86,7 @@ endif;
echo '';
echo __d('cake_dev', 'Your database configuration file is NOT present.');
echo '
';
- echo __d('cake_dev', 'Rename APP/Config/database.php.default to APP/Config/database.php');
+ echo __d('cake_dev', 'Rename %s to %s', 'APP/Config/database.php.default', 'APP/Config/database.php');
echo '';
endif;
?>
@@ -155,9 +153,10 @@ if (isset($filePresent)):
-To change its layout, edit: APP/View/Layouts/default.ctp.
-You can also add some CSS styles for your pages at: APP/webroot/css.');
+echo __d('cake_dev', 'To change the content of this page, edit: %s.
+To change its layout, edit: %s.
+You can also add some CSS styles for your pages at: %s.',
+ 'APP/View/Pages/home.ctp', 'APP/View/Layouts/default.ctp', 'APP/webroot/css');
?>
1) Help me configure it 2) I don't / can't use URL rewriting
+
=')):
@@ -93,12 +99,12 @@ if (isset($filePresent)):
} catch (Exception $connectionError) {
$connected = false;
$errorMsg = $connectionError->getMessage();
- if (method_exists($connectionError, 'getAttributes')) {
+ if (method_exists($connectionError, 'getAttributes')):
$attributes = $connectionError->getAttributes();
- if (isset($errorMsg['message'])) {
+ if (isset($errorMsg['message'])):
$errorMsg .= '
' . $attributes['message'];
- }
- }
+ endif;
+ endif;
}
?>
@@ -119,13 +125,13 @@ if (isset($filePresent)):
';
echo __d('cake_dev', 'PCRE has not been compiled with Unicode support.');
echo '
';
- echo __d('cake_dev', 'Recompile PCRE with Unicode support by adding %s when configuring', '--enable-unicode-properties
');
+ echo __d('cake_dev', 'Recompile PCRE with Unicode support by adding --enable-unicode-properties
when configuring');
echo '