mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 19:38:26 +00:00
bec875debc
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4007 3807eeeb-6ff5-0310-8944-8be069107fe0
16 lines
No EOL
1.1 KiB
PHP
16 lines
No EOL
1.1 KiB
PHP
<?php
|
|
$output = "<p class=\"notice\">Your database configuration file is <?php echo file_exists(CONFIGS.'database.php') ?' present.' . \$filePresent = ' ' : ' not present.'; ?></p>\n";
|
|
$output .= "<?php if (!empty(\$filePresent)):?>\n";
|
|
$output .= "<?php uses('model' . DS . 'connection_manager'); \$db = ConnectionManager::getInstance(); ?>\n";
|
|
$output .= "<?php \$connected = \$db->getDataSource('default'); ?>\n";
|
|
$output .= "<p class=\"notice\">Cake<?php echo \$connected->isConnected() ? ' is able to' : ' is not able to';?> connect to the database.</p>\n";
|
|
$output .= "<br />\n";
|
|
$output .= "<?php endif; ?>\n";
|
|
$output .= "<h1>Sweet, \"".Inflector::humanize($app)."\" got Baked by CakePHP!</h1>\n";
|
|
$output .= "<h2>Editing this Page</h2>\n";
|
|
$output .= "<p>\n";
|
|
$output .= "To change the content of this page, edit: ".$dir.DS."views".DS."pages".DS."home.thtml.<br />\n";
|
|
$output .= "To change its layout, edit: ".$dir.DS."views".DS."layouts".DS."default.thtml.<br />\n";
|
|
$output .= "You can also add some CSS styles for your pages at: ".$dir.DS."webroot/css/.\n";
|
|
$output .= "</p>\n";
|
|
?>
|