mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Updating the home.ctp file to include last changes made on directories name and i18n usage.
This commit is contained in:
parent
2a3f49bf00
commit
2e3f828098
2 changed files with 20 additions and 20 deletions
|
@ -11,11 +11,11 @@ endif;
|
||||||
<?php
|
<?php
|
||||||
if (is_writable(TMP)):
|
if (is_writable(TMP)):
|
||||||
echo '<span class=\"notice success\">';
|
echo '<span class=\"notice success\">';
|
||||||
echo __('Your tmp directory is writable.');
|
echo __d('cake_dev', 'Your tmp directory is writable.');
|
||||||
echo '</span>';
|
echo '</span>';
|
||||||
else:
|
else:
|
||||||
echo '<span class=\"notice\">';
|
echo '<span class=\"notice\">';
|
||||||
echo __('Your tmp directory is NOT writable.');
|
echo __d('cake_dev', 'Your tmp directory is NOT writable.');
|
||||||
echo '</span>';
|
echo '</span>';
|
||||||
endif;
|
endif;
|
||||||
?>
|
?>
|
||||||
|
@ -25,11 +25,11 @@ endif;
|
||||||
\$settings = Cache::settings();
|
\$settings = Cache::settings();
|
||||||
if (!empty(\$settings)):
|
if (!empty(\$settings)):
|
||||||
echo '<span class=\"notice success\">';
|
echo '<span class=\"notice success\">';
|
||||||
echo __('The %s is being used for caching. To change the config edit APP/config/core.php ', '<em>'. \$settings['engine'] . 'Engine</em>');
|
echo __d('cake_dev', 'The %s is being used for caching. To change the config edit APP/Config/core.php ', '<em>'. \$settings['engine'] . 'Engine</em>');
|
||||||
echo '</span>';
|
echo '</span>';
|
||||||
else:
|
else:
|
||||||
echo '<span class=\"notice\">';
|
echo '<span class=\"notice\">';
|
||||||
echo __('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 APP/Config/core.php');
|
||||||
echo '</span>';
|
echo '</span>';
|
||||||
endif;
|
endif;
|
||||||
?>
|
?>
|
||||||
|
@ -39,14 +39,14 @@ endif;
|
||||||
\$filePresent = null;
|
\$filePresent = null;
|
||||||
if (file_exists(APP . 'Config' . DS . 'database.php')):
|
if (file_exists(APP . 'Config' . DS . 'database.php')):
|
||||||
echo '<span class=\"notice success\">';
|
echo '<span class=\"notice success\">';
|
||||||
echo __('Your database configuration file is present.');
|
echo __d('cake_dev', 'Your database configuration file is present.');
|
||||||
\$filePresent = true;
|
\$filePresent = true;
|
||||||
echo '</span>';
|
echo '</span>';
|
||||||
else:
|
else:
|
||||||
echo '<span class=\"notice\">';
|
echo '<span class=\"notice\">';
|
||||||
echo __('Your database configuration file is NOT present.');
|
echo __d('cake_dev', 'Your database configuration file is NOT present.');
|
||||||
echo '<br/>';
|
echo '<br/>';
|
||||||
echo __('Rename config/database.php.default to config/database.php');
|
echo __d('cake_dev', 'Rename Config/database.php.default to Config/database.php');
|
||||||
echo '</span>';
|
echo '</span>';
|
||||||
endif;
|
endif;
|
||||||
?>
|
?>
|
||||||
|
@ -64,11 +64,11 @@ if (isset(\$filePresent)):
|
||||||
<?php
|
<?php
|
||||||
if (\$connected && \$connected->isConnected()):
|
if (\$connected && \$connected->isConnected()):
|
||||||
echo '<span class=\"notice success\">';
|
echo '<span class=\"notice success\">';
|
||||||
echo __('Cake is able to connect to the database.');
|
echo __d('cake_dev', 'Cake is able to connect to the database.');
|
||||||
echo '</span>';
|
echo '</span>';
|
||||||
else:
|
else:
|
||||||
echo '<span class=\"notice\">';
|
echo '<span class=\"notice\">';
|
||||||
echo __('Cake is NOT able to connect to the database.');
|
echo __d('cake_dev', 'Cake is NOT able to connect to the database.');
|
||||||
echo '</span>';
|
echo '</span>';
|
||||||
endif;
|
endif;
|
||||||
?>
|
?>
|
||||||
|
@ -78,16 +78,16 @@ if (isset(\$filePresent)):
|
||||||
App::uses('Validation', 'Utility');
|
App::uses('Validation', 'Utility');
|
||||||
if (!Validation::alphaNumeric('cakephp')) {
|
if (!Validation::alphaNumeric('cakephp')) {
|
||||||
echo '<p><span class=\"notice\">';
|
echo '<p><span class=\"notice\">';
|
||||||
__('PCRE has not been compiled with Unicode support.');
|
__d('cake_dev', 'PCRE has not been compiled with Unicode support.');
|
||||||
echo '<br/>';
|
echo '<br/>';
|
||||||
__('Recompile PCRE with Unicode support by adding <code>--enable-unicode-properties</code> when configuring');
|
__d('cake_dev', 'Recompile PCRE with Unicode support by adding <code>--enable-unicode-properties</code> when configuring');
|
||||||
echo '</span></p>';
|
echo '</span></p>';
|
||||||
}
|
}
|
||||||
?>\n";
|
?>\n";
|
||||||
$output .= "<h3><?php echo __('Editing this Page') ?></h3>\n";
|
$output .= "<h3><?php echo __d('cake_dev', 'Editing this Page') ?></h3>\n";
|
||||||
$output .= "<p>\n";
|
$output .= "<p>\n";
|
||||||
$output .= "<?php\n";
|
$output .= "<?php\n";
|
||||||
$output .= "\techo __('To change the content of this page, edit: %s\n";
|
$output .= "\techo __d('cake_dev', 'To change the content of this page, edit: %s\n";
|
||||||
$output .= "\t\tTo change its layout, edit: %s\n";
|
$output .= "\t\tTo change its layout, edit: %s\n";
|
||||||
$output .= "\t\tYou can also add some CSS styles for your pages at: %s',\n";
|
$output .= "\t\tYou can also add some CSS styles for your pages at: %s',\n";
|
||||||
$output .= "\t\tAPP . 'View' . DS . 'Pages' . DS . 'home.ctp.<br />', APP . 'View' . DS . 'Layouts' . DS . 'default.ctp.<br />', APP . 'webroot' . DS . 'css');\n";
|
$output .= "\t\tAPP . 'View' . DS . 'Pages' . DS . 'home.ctp.<br />', APP . 'View' . DS . 'Layouts' . DS . 'default.ctp.<br />', APP . 'webroot' . DS . 'css');\n";
|
||||||
|
|
|
@ -50,11 +50,11 @@ endif;
|
||||||
$settings = Cache::settings();
|
$settings = Cache::settings();
|
||||||
if (!empty($settings)):
|
if (!empty($settings)):
|
||||||
echo '<span class="notice success">';
|
echo '<span class="notice success">';
|
||||||
echo __d('cake_dev', 'The %s is being used for caching. To change the config edit APP/config/core.php ', '<em>'. $settings['engine'] . 'Engine</em>');
|
echo __d('cake_dev', 'The %s is being used for caching. To change the config edit APP/Config/core.php ', '<em>'. $settings['engine'] . 'Engine</em>');
|
||||||
echo '</span>';
|
echo '</span>';
|
||||||
else:
|
else:
|
||||||
echo '<span class="notice">';
|
echo '<span class="notice">';
|
||||||
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 APP/Config/core.php');
|
||||||
echo '</span>';
|
echo '</span>';
|
||||||
endif;
|
endif;
|
||||||
?>
|
?>
|
||||||
|
@ -71,7 +71,7 @@ endif;
|
||||||
echo '<span class="notice">';
|
echo '<span class="notice">';
|
||||||
echo __d('cake_dev', 'Your database configuration file is NOT present.');
|
echo __d('cake_dev', 'Your database configuration file is NOT present.');
|
||||||
echo '<br/>';
|
echo '<br/>';
|
||||||
echo __d('cake_dev', 'Rename config/database.php.default to config/database.php');
|
echo __d('cake_dev', 'Rename Config/database.php.default to Config/database.php');
|
||||||
echo '</span>';
|
echo '</span>';
|
||||||
endif;
|
endif;
|
||||||
?>
|
?>
|
||||||
|
@ -103,17 +103,17 @@ if (isset($filePresent)):
|
||||||
App::uses('Validation', 'Utility');
|
App::uses('Validation', 'Utility');
|
||||||
if (!Validation::alphaNumeric('cakephp')) {
|
if (!Validation::alphaNumeric('cakephp')) {
|
||||||
echo '<p><span class="notice">';
|
echo '<p><span class="notice">';
|
||||||
__('PCRE has not been compiled with Unicode support.');
|
__d('cake_dev', 'PCRE has not been compiled with Unicode support.');
|
||||||
echo '<br/>';
|
echo '<br/>';
|
||||||
__('Recompile PCRE with Unicode support by adding <code>--enable-unicode-properties</code> when configuring');
|
__d('cake_dev', 'Recompile PCRE with Unicode support by adding <code>--enable-unicode-properties</code> when configuring');
|
||||||
echo '</span></p>';
|
echo '</span></p>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<h3><?php echo __d('cake_dev', 'Editing this Page'); ?></h3>
|
<h3><?php echo __d('cake_dev', 'Editing this Page'); ?></h3>
|
||||||
<p>
|
<p>
|
||||||
<?php
|
<?php
|
||||||
echo __d('cake_dev', 'To change the content of this page, create: APP/views/pages/home.ctp.<br />
|
echo __d('cake_dev', 'To change the content of this page, create: APP/View/Pages/home.ctp.<br />
|
||||||
To change its layout, create: APP/views/layouts/default.ctp.<br />
|
To change its layout, create: APP/View/Layouts/default.ctp.<br />
|
||||||
You can also add some CSS styles for your pages at: APP/webroot/css.');
|
You can also add some CSS styles for your pages at: APP/webroot/css.');
|
||||||
?>
|
?>
|
||||||
</p>
|
</p>
|
||||||
|
|
Loading…
Reference in a new issue