Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I originally posted this as a comment, but as this seems to be of relevance to the OP I'll make it an official answer. The stylesheet link gives a 404 error.</p> <p>By no layout, you mean no HTML? Is the cake.generic.css file properly loaded? The div of the mod_rewrite message is hidden by the default CSS if the module is properly loaded, but if the CSS is not included you might see it anyway. </p> <p>I've had this problem on 1.3 installations, so I'm not sure if it applies to 2.0.</p> <p>As for the 404 error, it might be a superfluous question: but is the favicon.ico actually present in the <code>webroot</code> directory and the <code>cake.generic.css</code> in <code>/webroot/css/</code>? </p> <p>Also, are you running the application in a subdirectory, or is the <code>app</code> directory in the HTTP root of the webserver?</p> <p>If you are running the application in a subdirectory you might want to change the RewriteBase in both the <code>.htaccess</code> of the <code>app</code> directory (or whatever it's called) where your models, controllers, etc. are stored and the <code>webroot</code> directory.</p> <p>The .htaccess for the <code>/app</code> directory:</p> <pre><code>&lt;IfModule mod_rewrite.c&gt; RewriteEngine on RewriteBase /YOUR_APP_DIR/ RewriteRule ^$ webroot/ [L] RewriteRule (.*) webroot/$1 [L] &lt;/IfModule&gt; </code></pre> <p>And <code>/app/webroot</code>:</p> <pre><code>&lt;IfModule mod_rewrite.c&gt; RewriteEngine On RewriteBase /YOUR_APP_DIR/ RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] &lt;/IfModule&gt; </code></pre> <p>Change YOUR_APP_DIR to the relevant path on you webserver. <a href="http://book.cakephp.org/2.0/en/installation/advanced-installation.html#apache-and-mod-rewrite-and-htaccess" rel="nofollow">Here's more</a> on specific installations of Cake, it might be applicable to your setup.</p> <p><strong>EDIT:</strong> The .htaccess doesn't look right. I think it should be: <code>/admin/app/</code> in both files.</p> <p>If that doesn't work you could investigate the way the CSS is called in <code>default.ctp</code>. The call to the CSS is formatted like so in <code>default.ctp</code>: <code>&lt;?php echo $this-&gt;Html-&gt;css(array("/css/cake.generic"), "stylesheet", array("media"=&gt;"screen")); ?&gt;</code></p> <p>You could also override the stock <code>default.ctp</code> by placing a file with that name in <code>/View/Layouts</code>, the Cookbook example can be found <a href="http://book.cakephp.org/view/1080/Layouts" rel="nofollow">here</a>. When that is done you can experiment with the full path to the css file and see if the server is correctly serving it.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload