Skip to content

Commit

Permalink
Fixed Issue #18 to improve installation text
Browse files Browse the repository at this point in the history
  • Loading branch information
taiwen committed Apr 2, 2013
1 parent 590a77f commit 82e6cd4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
16 changes: 13 additions & 3 deletions var/config/service.database.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,22 @@
'dsn' => 'mysql:dbname=pi;host=localhost',
'username' => 'root',
'password' => '',
'options' => array(

// driver_options. All attributes must be valid.
// @see http://www.php.net/manual/en/pdo.setattribute.php
'driver_options' => array(
PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8 COLLATE utf8_general_ci',
PDO::ATTR_PERSISTENT => false,

// Custom PDOstatement class. Optional, default as Pi\Db\Adapter\Driver\Statement
// PDO::ATTR_STATEMENT_CLASS => array('PDOstatement'),
),

// Add custom options in this section
'options' => array(
// To build connection upload. Optional, default as true
'connect_onload' => true,
),
// To build connection upload. Optional, default as true
'connect_onload' => true,
),

// Database schema
Expand Down
4 changes: 2 additions & 2 deletions www/setup/src/Controller/Finish.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ public function indexAction()
$readPaths .= "</ul>";

$message = <<<'HTML'
<h2>Congratulatons, everything is done! <a href='../index.php'>Ready to visit your site?</a></h2>
<h2>Congratulatons! The system is set up successfully. <a href='../index.php'>Click to visit your website!</a></h2>
<h3>Security advisory</h3>
<ol>For security considerations you are strongly recommended to complete the following actions:
<ol>For security considerations please make sure the following operations are done:
<li>Remove the installation folder <strong>%s</strong> from your server.</li>
<li>Set configuration directories and files to readonly: %s</li>
</ol>
Expand Down

0 comments on commit 82e6cd4

Please sign in to comment.