cake version 2.2.1
I am using a Theme. It works great on my localhost.  
When I upload to my server it can't find the CSS. Everything else about the 
application seems to work fine on the server.

In my layout default.ctp I use

    $css = array('enlighten', 
                 'enlighten_extra',
                 );
                 
        echo $this->Html->css($css);

on my XAMMP localhost generates this and works fine:

    <link rel="stylesheet" type="text/css" 
href="/cake2_apps/blog/theme/enlighten/css/enlighten.css" />
    <link rel="stylesheet" type="text/css" 
href="/cake2_apps/blog/theme/enlighten/css/enlighten_extra.css" />
    
On my dreamhost production server it comes out like this:
    
    <link rel="stylesheet" type="text/css" href="/blog/css/enlighten.css" />
    <link rel="stylesheet" type="text/css" 
href="/blog/css/enlighten_extra.css" />

And the CSS is not loaded.

The theme is in /cake2_apps/blog/View/Theme/enlighten and css is in 
/cake2_apps/blog/View/Theme/enlighten/webroot/CSS

I am using the .htaccess that came with cake distribution.

Thankx in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.


Reply via email to