updating skel home.thtml

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3160 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
gwoo 2006-06-22 21:07:03 +00:00
parent 8c6b0576af
commit 93036b8681

View file

@ -1,12 +1,12 @@
<?php <?php
$output = "<p style=\"background:#DBA941;padding:4px;font-size: 16px;\">Your database configuration file is <?php echo file_exists(CONFIGS.'database.php') ?' present.' . \$filePresent = ' ' : ' not present.'; ?></p>\n"; $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 if (!empty(\$filePresent)):?>\n";
$output .= "<?php \$db = ConnectionManager::getInstance(); ?>\n"; $output .= "<?php \$db = ConnectionManager::getInstance(); ?>\n";
$output .= "<?php \$connected = \$db->getDataSource('default'); ?>\n"; $output .= "<?php \$connected = \$db->getDataSource('default'); ?>\n";
$output .= "<p style=\"background:#DBA941;padding:4px;font-size: 16px;\">Cake<?php echo \$connected->isConnected() ? ' is able to' : ' is not able to';?> connect to the database.</p>\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 .= "<br />\n";
$output .= "<?php endif; ?>\n"; $output .= "<?php endif; ?>\n";
$output .= "<h1>CakePHP just \"Baked\" your application: ".Inflector::humanize($app)."</h1>\n"; $output .= "<h1>Sweet, \"".Inflector::humanize($app)."\" got Baked by CakePHP!</h1>\n";
$output .= "<h2>Editing this Page</h2>\n"; $output .= "<h2>Editing this Page</h2>\n";
$output .= "<p>\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 the content of this page, edit: ".$dir.DS."views".DS."pages".DS."home.thtml.<br />\n";