cakephp css not working

2009-08-14 Thread srini vasan

hi,
i have downloaded cakephp stable version.
   I have just typed http://localhost/cakephp in my browser.
  but css file not running.please replay me what to do to solve this
problem.



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: cakephp css not working

2009-08-14 Thread Brendon Kozlowski (Realm)

The most common cause is that mod_rewrite is not enabled.  Make sure
mod_rewrite is enabled, restart the server, and try again.

On Aug 14, 1:59 am, srini vasan srinivas_...@yahoo.co.in wrote:
 hi,
     i have downloaded cakephp stable version.
    I have just typedhttp://localhost/cakephpin my browser.
   but css file not running.please replay me what to do to solve this
 problem.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: CSS not working out the box

2007-07-12 Thread ReiToei

I had the same problem just now... turns when I unzipped the archive,
the .htaccess file didn't get expanded (or didn't come in the archive,
I'm not sure). I used Stuffit expander on OS X.

All I did to fix it was drop to a command line and copy the .htaccess
file from another cake install to the root of my new install.

Worked straight away.

Good luck!

On Jul 11, 2:27 pm, Harro [EMAIL PROTECTED] wrote:
 Thanks all for the replys, it turned out for some reason mod_rewrite
 had been turned off. Its working fine now.

 On Jul 3, 4:43 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

  I believe Harro and I are having the exact same problem. I am trying
  to run this as a development setup .When I point the browser to
  'localhost/cake' and I look at the source, I see the following:
  link rel=stylesheet type=text/css href=/css/cake.generic.css /

  Clearly, this is pointing to nothing. However, when I point the
  browser to localhost/cake/app/webroot the same line read the
  following:
  link rel=stylesheet type=text/css href=/cake/css/
  cake.generic.css /

  I have mod_rewrite enabled. I assume there is a setting I need to
  change. Would it just be easier to move the webroot folder out of /app
  and set the path manually. Also, if I change the Apache DocumentRoot
  to to the app/webroot folder (i.e. production setup) everything works
  fine.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: CSS not working out the box

2007-07-11 Thread Harro

Thanks all for the replys, it turned out for some reason mod_rewrite
had been turned off. Its working fine now.

On Jul 3, 4:43 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 I believe Harro and I are having the exact same problem. I am trying
 to run this as a development setup .When I point the browser to
 'localhost/cake' and I look at the source, I see the following:
 link rel=stylesheet type=text/css href=/css/cake.generic.css /

 Clearly, this is pointing to nothing. However, when I point the
 browser to localhost/cake/app/webroot the same line read the
 following:
 link rel=stylesheet type=text/css href=/cake/css/
 cake.generic.css /

 I have mod_rewrite enabled. I assume there is a setting I need to
 change. Would it just be easier to move the webroot folder out of /app
 and set the path manually. Also, if I change the Apache DocumentRoot
 to to the app/webroot folder (i.e. production setup) everything works
 fine.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



CSS not working out the box

2007-07-03 Thread Harro

I have just downloaded the latest stable release from cakephp.org:

cake_1.1.15.5144.zip

and unzipped it into my webroot, however, there is no css styling what
so ever? Is there any configurations I have to make to get it working?

Thanks, Harro.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: CSS not working out the box

2007-07-03 Thread Walker Hamilton

If you've done a default install of cakephp on your local machine and
css is not working, check a couple things:

1. do you have mod_rewrite active?
2. which index.php page is getting loaded?

/cakephp_xxx/index.php

or

cakephp_xxx/app/index.php

On Jul 3, 7:24 am, Harro [EMAIL PROTECTED] wrote:
 I have just downloaded the latest stable release from cakephp.org:

 cake_1.1.15.5144.zip

 and unzipped it into my webroot, however, there is no css styling what
 so ever? Is there any configurations I have to make to get it working?

 Thanks, Harro.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: CSS not working out the box

2007-07-03 Thread Paul R. Zwiers



 If you've done a default install of cakephp on your local machine and
 css is not working, check a couple things:

 1. do you have mod_rewrite active?
 2. which index.php page is getting loaded?

 /cakephp_xxx/index.php

 or

 cakephp_xxx/app/index.php

And also check
  3. Can you reach the css by browsing to /css/cake.generic.css
  4. Check the page source in your browser what it says, ie

link rel=stylesheet type=text/css href=/css/cake.generic.css /

HTH
Paul

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: CSS not working out the box

2007-07-03 Thread [EMAIL PROTECTED]

I believe Harro and I are having the exact same problem. I am trying
to run this as a development setup .When I point the browser to
'localhost/cake' and I look at the source, I see the following:
link rel=stylesheet type=text/css href=/css/cake.generic.css /

Clearly, this is pointing to nothing. However, when I point the
browser to localhost/cake/app/webroot the same line read the
following:
link rel=stylesheet type=text/css href=/cake/css/
cake.generic.css /

I have mod_rewrite enabled. I assume there is a setting I need to
change. Would it just be easier to move the webroot folder out of /app
and set the path manually. Also, if I change the Apache DocumentRoot
to to the app/webroot folder (i.e. production setup) everything works
fine.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: CSS not working

2007-06-10 Thread Gonzalo Servat
On 6/10/07, pbland [EMAIL PROTECTED] wrote:


 Pablo,

 Great, that worked! Thanks for the help. Can you tell me where $html-
 css() is described in the Manual? I looked on the Helper page and I
 see mention of $html functions, but it mentions 4 parms for the css
 function, so I don't know if this is the correct one.


That's the one.  The only required parameter is the first one which is, as
Pablo said, css_file_without_css_extension. If you like, you can supply the
second parameter (rel type) and html attributes as an array (3rd parameter).
If the 4th parameter is true, it will return the output.

Hope this helps.

- Gonzalo

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: CSS not working

2007-06-10 Thread Pablo Viojo
Also, you can take a look at the API[1]

Pablo

[1] http://api.cakephp.org/

On 6/10/07, Gonzalo Servat [EMAIL PROTECTED] wrote:

 On 6/10/07, pbland [EMAIL PROTECTED] wrote:
 
 
  Pablo,
 
  Great, that worked! Thanks for the help. Can you tell me where $html-
  css() is described in the Manual? I looked on the Helper page and I
  see mention of $html functions, but it mentions 4 parms for the css
  function, so I don't know if this is the correct one.


 That's the one.  The only required parameter is the first one which is,
 as Pablo said, css_file_without_css_extension. If you like, you can supply
 the second parameter (rel type) and html attributes as an array (3rd
 parameter). If the 4th parameter is true, it will return the output.

 Hope this helps.

 - Gonzalo

 



-- 
Pablo Viojo
[EMAIL PROTECTED]
http://pviojo.net

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



CSS not working

2007-06-09 Thread pbland

I'm having a problem with my CSS file not being found or being applied
for a view that is initiated from a link in index.php . Here's how I
have my app configured:

In routes.php I have / mapped to: array('controller' = 'accounts',
'action' = 'index')
When I got to the index.thtml page, the page loads and the CSS styles
(from the link href=css/style.css in default.thtml) are applied.
In index.thtml there is a link: $html-link(Login to your account,/
accounts/login/). When I click the link, the login.thtml page in my
view folder loads, but now the CSS styles are not applied. However,
when I view the source, I see link rel=stylesheet type=text/css
href=css/style.css /. So I'm the style.css file is not being found,
but I don't understand why.

Any help would be appreciated.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: CSS not working

2007-06-09 Thread Pablo Viojo
When you are accessing /accounts/login/ the css/style.css become
/accounts/login/css/style.css so it's not found (you are using a relative
path for it). It will be better if you use the cakephp's buit-in function
for including a css file  $html-css('css_file_without_css_extension');



-- 
Pablo Viojo
[EMAIL PROTECTED]
http://pviojo.net



On 6/9/07, pbland [EMAIL PROTECTED] wrote:


 I'm having a problem with my CSS file not being found or being applied
 for a view that is initiated from a link in index.php . Here's how I
 have my app configured:

 In routes.php I have / mapped to: array('controller' = 'accounts',
 'action' = 'index')
 When I got to the index.thtml page, the page loads and the CSS styles
 (from the link href=css/style.css in default.thtml) are applied.
 In index.thtml there is a link: $html-link(Login to your account,/
 accounts/login/). When I click the link, the login.thtml page in my
 view folder loads, but now the CSS styles are not applied. However,
 when I view the source, I see link rel=stylesheet type=text/css
 href=css/style.css /. So I'm the style.css file is not being found,
 but I don't understand why.

 Any help would be appreciated.


 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: CSS not working

2007-06-09 Thread pbland

Pablo,

Great, that worked! Thanks for the help. Can you tell me where $html-
css() is described in the Manual? I looked on the Helper page and I
see mention of $html functions, but it mentions 4 parms for the css
function, so I don't know if this is the correct one.

Thanks!


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---