Changeset 2251
- Timestamp:
- 03/09/2008 03:26:24 PM (9 months ago)
- Location:
- trunk
- Files:
-
- 1 added
- 4 modified
-
application/controllers/welcome.php (modified) (1 diff)
-
index.php (modified) (3 diffs)
-
system/views/kohana_error_disabled.php (modified) (1 diff)
-
system/views/kohana_error_page.php (modified) (1 diff)
-
system/views/kohana_errors.css (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/application/controllers/welcome.php
r2233 r2251 13 13 public function index() 14 14 { 15 echo $foo; 15 16 // In Kohana, all views are loaded and treated as objects. 16 17 $welcome = new View('welcome'); -
trunk/index.php
r2250 r2251 63 63 64 64 /** 65 * Define the Kohana-generated error message style.66 */67 define('KOHANA_ERROR_CSS',68 // Any of these styles can be changed to affect all error messages.69 'div#kohana_error { background:#fff; border:solid 1px #ccc; font-family:sans-serif; color:#111; font-size:14px; line-height:130%; }'.70 'div#kohana_error h3 { color:#fff; font-size:16px; padding:8px 6px; margin:0 0 8px; background:#f15a00; text-align:center; }'.71 'div#kohana_error a { color:#228; text-decoration:none; }'.72 'div#kohana_error a:hover { text-decoration:underline; }'.73 'div#kohana_error strong { color:#900; }'.74 'div#kohana_error p { margin:0; padding:4px 6px 10px; }'.75 'div#kohana_error tt,'.76 'div#kohana_error pre,'.77 'div#kohana_error code { font-family:monospace; padding:2px 4px; white-space:pre; font-size:12px; color:#333; }'.78 'div#kohana_error tt { font-style:italic; }'.79 'div#kohana_error tt:before { content:">"; color:#aaa; }'.80 'div#kohana_error code tt:before { content:""; }'.81 'div#kohana_error pre,'.82 'div#kohana_error code { background:#eaeee5; border:solid 0 #D6D8D1; border-width:0 1px 1px 0; }'.83 'div#kohana_error .block { display:block; text-align:left; }'.84 'div#kohana_error .stats { padding:4px; background: #eee; border-top:solid 1px #ccc; text-align:center; font-size:10px; color:#888; }'.85 'div#kohana_error .backtrace { margin:0; padding:0 6px; list-style:none; line-height:12px; }'86 );87 88 /**89 65 * If you rename all of your .php files to a different extension, set the new 90 66 * extension here. This option can left to .php, even if this file is has a … … 121 97 die 122 98 ( 123 '<style type="text/css">'.KOHANA_ERROR_CSS.'</style>'. 124 '<div id="kohana_error" style="width:26em;margin:50px auto;text-align:center;">'. 99 '<div id="framework_error" style="width:80%;margin:50px auto;text-align:center;">'. 125 100 '<h3>Application Directory Not Found</h3>'. 126 101 '<p>The <code>$kohana_application</code> directory does not exist.</p>'. … … 135 110 die 136 111 ( 137 '<style type="text/css">'.KOHANA_ERROR_CSS.'</style>'. 138 '<div id="kohana_error" style="width:26em;margin:50px auto;text-align:center;">'. 112 '<div id="framework_error" style="width:80%;margin:50px auto;text-align:center;">'. 139 113 '<h3>System Directory Not Found</h3>'. 140 114 '<p>The <code>$kohana_system</code> directory does not exist.</p>'. -
trunk/system/views/kohana_error_disabled.php
r2249 r2251 7 7 <body> 8 8 <style type="text/css"> 9 <?php echo KOHANA_ERROR_CSS?>9 <?php include Kohana::find_file('views', 'kohana_errors', FALSE, 'css') ?> 10 10 </style> 11 <div id=" kohana_error" style="width:24em;margin:50px auto;">11 <div id="framework_error" style="width:24em;margin:50px auto;"> 12 12 <h3><?php echo $error ?></h3> 13 13 <p><?php echo $message ?></p> -
trunk/system/views/kohana_error_page.php
r2249 r2251 8 8 <body> 9 9 <style type="text/css"> 10 <?php echo KOHANA_ERROR_CSS?>10 <?php include Kohana::find_file('views', 'kohana_errors', FALSE, 'css') ?> 11 11 </style> 12 <div id=" kohana_error" style="width:42em;margin:20px auto;">12 <div id="framework_error" style="width:42em;margin:20px auto;"> 13 13 <h3><?php echo $error ?></h3> 14 14 <p><?php echo $description ?></p>
