[ Index ] |
|
Code source de CakePHP 1.1.13.4450 |
1 <?php 2 $output = "<p class=\"notice\">Your database configuration file is <?php echo file_exists(CONFIGS.'database.php') ?' present.' . \$filePresent = ' ' : ' not present.'; ?></p>\n"; 3 $output .= "<?php if (!empty(\$filePresent)):?>\n"; 4 $output .= "<?php uses('model' . DS . 'connection_manager'); \$db = ConnectionManager::getInstance(); ?>\n"; 5 $output .= "<?php \$connected = \$db->getDataSource('default'); ?>\n"; 6 $output .= "<p class=\"notice\">Cake<?php echo \$connected->isConnected() ? ' is able to' : ' is not able to';?> connect to the database.</p>\n"; 7 $output .= "<br />\n"; 8 $output .= "<?php endif; ?>\n"; 9 $output .= "<h1>Sweet, \"".Inflector::humanize($app)."\" got Baked by CakePHP!</h1>\n"; 10 $output .= "<h2>Editing this Page</h2>\n"; 11 $output .= "<p>\n"; 12 $output .= "To change the content of this page, edit: ".$dir.DS."views".DS."pages".DS."home.thtml.<br />\n"; 13 $output .= "To change its layout, edit: ".$dir.DS."views".DS."layouts".DS."default.thtml.<br />\n"; 14 $output .= "You can also add some CSS styles for your pages at: ".$dir.DS."webroot/css/.\n"; 15 $output .= "</p>\n"; 16 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 19:27:47 2007 | par Balluche grâce à PHPXref 0.7 |