OSDN Git Service

SessionにsetFlashされたメッセージ表示を追加
authorCake <cake_67@users.sourceforge.jp>
Thu, 15 Apr 2010 14:27:04 +0000 (23:27 +0900)
committerCake <cake_67@users.sourceforge.jp>
Fri, 16 Apr 2010 05:01:18 +0000 (14:01 +0900)
app/config/core.php.sample [changed mode: 0755->0644]
app/plugins/install/vendors/css/install.css
app/plugins/install/views/layouts/install.ctp

old mode 100755 (executable)
new mode 100644 (file)
index f9f4db1..8a6d64b
@@ -99,7 +99,7 @@
  * To use database sessions, execute the SQL file found at /app/config/sql/sessions.sql.
  *
  */
-       Configure::write('Session.save', 'database');
+       Configure::write('Session.save', 'cake');
 /**
  * The name of the table used to store CakePHP database sessions.
  *
index ee64643..75936ca 100644 (file)
 
 .install #footer { background: none; color: #444; }
 .install #footer a { color: #444; }
+
+/* Notices and Errors */
+div.message {
+       clear: both;
+       color: #900;
+       font-size: 140%;
+       font-weight: bold;
+       margin: 1em 0;
+}
+div.error-message {
+       clear: both;
+       color: #900;
+       font-weight: bold;
+}
+p.error {
+       background-color: #e32;
+       color: #fff;
+       font-family: Courier, monospace;
+       font-size: 120%;
+       line-height: 140%;
+       padding: 0.8em;
+       margin: 1em 0;
+}
+p.error em {
+       color: #000;
+       font-weight: normal;
+       line-height: 140%;
+}
+.notice {
+       background: #ffcc00;
+       color: #000;
+       display: block;
+       font-family: Courier, monospace;
+       font-size: 120%;
+       line-height: 140%;
+       padding: 0.8em;
+       margin: 1em 0;
+}
+.success {
+       background: green;
+       color: #fff;
+}
index 8ffac60..3cb00fe 100644 (file)
@@ -23,6 +23,8 @@
 
         <div id="main">
             <div id="install">
+               <?php $session->flash(); ?>
+
             <?php
                 //$layout->sessionFlash();
                 echo $content_for_layout;