Skip to content
Permalink
Browse files

Adding warning message on homepage for misconfigured URL rewriting. C…

…loses #1577
  • Loading branch information...
ADmad committed May 26, 2011
1 parent 600609c commit 6b7dbcdd1c1ed8edfa559eee12a6b9f0fc2c5a61
Showing with 10 additions and 0 deletions.
  1. +5 −0 app/webroot/css/cake.generic.css
  2. +5 −0 cake/libs/view/pages/home.ctp
@@ -532,4 +532,9 @@ div.code-coverage-results span.result-ok {
}
div.code-coverage-results span.result-good {
color: #0a0;
}

/** Elements **/
#url-rewriting-warning {
display: none;
}
@@ -27,6 +27,11 @@ if (Configure::read() > 0):
Debugger::checkSecurityKeys();
endif;
?>
<div id="url-rewriting-warning" style="background-color:#e32; color:#fff; padding:3px;">
<?php __('URL rewriting is not properly configured on your server. '); ?>
1) <a target="_blank" href="http://book.cakephp.org/view/917/Apache-and-mod_rewrite-and-htaccess" style="color:#fff;">Help me configure it</a>
2) <a target="_blank" href="http://book.cakephp.org/view/931/CakePHP-Core-Configuration-Variables" style="color:#fff;">I don't / can't use URL rewriting</a>
</div>
<p>
<?php
if (is_writable(TMP)):

0 comments on commit 6b7dbcd

Please sign in to comment.
You can’t perform that action at this time.