Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added warning message on homepage for misconfigured URL rewriting. Re…

…moved dead link for cakeforge.org
  • Loading branch information...
commit cb946bbcf36d90ea0d11d3faf0f9265063df47ae 1 parent ccc3b9d
@ADmad ADmad authored
Showing with 10 additions and 2 deletions.
  1. +5 −0 app/webroot/css/cake.generic.css
  2. +5 −2 lib/Cake/View/Pages/home.ctp
View
5 app/webroot/css/cake.generic.css
@@ -531,4 +531,9 @@ div.code-coverage-results span.result-ok {
}
div.code-coverage-results span.result-good {
color: #0a0;
+}
+
+/** Elements **/
+#url-rewriting-warning {
+ display:none;
}
View
7 lib/Cake/View/Pages/home.ctp
@@ -27,6 +27,11 @@ if (Configure::read('debug') > 0):
Debugger::checkSecurityKeys();
endif;
?>
+<p id="url-rewriting-warning" style="background-color:#e32; color:#fff;">
+ <?php echo __d('cake_dev', '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>
+</p>
<p>
<?php
if (is_writable(TMP)):
@@ -162,8 +167,6 @@ You can also add some CSS styles for your pages at: APP/webroot/css.');
<ul><li><?php echo __d('cake_dev', 'For the Development of CakePHP Git repository, Downloads'); ?></li></ul></li>
<li><a href="http://cakephp.lighthouseapp.com/"><?php echo __d('cake_dev', 'CakePHP Lighthouse'); ?> </a>
<ul><li><?php echo __d('cake_dev', 'CakePHP Tickets, Wiki pages, Roadmap'); ?></li></ul></li>
- <li><a href="http://www.cakeforge.org"><?php echo __d('cake_dev', 'CakeForge'); ?> </a>
- <ul><li><?php echo __d('cake_dev', 'Open Development for CakePHP'); ?></li></ul></li>
<li><a href="http://astore.amazon.com/cakesoftwaref-20/"><?php echo __d('cake_dev', 'Book Store'); ?> </a>
<ul><li><?php echo __d('cake_dev', 'Recommended Software Books'); ?></li></ul></li>
<li><a href="http://www.cafepress.com/cakefoundation"><?php echo __d('cake_dev', 'CakePHP gear'); ?> </a>
Please sign in to comment.
Something went wrong with that request. Please try again.