Re: URL Problem | Adding Slash at the end makes any difference ?
Hey Thanks Miles. It has solved my issue. One more basic problem I struct in question is I have a products/view/ page ( Products controller and view method ) eg : http://xyz.com/products/view/leatherProd So in this page what should be the href value for any other products eg. http://xyz.com/products/view/clothProd http://xyz.com/products/view/marineProd On Mon, Feb 2, 2009 at 3:06 AM, Miles J wrote: > > Your css/js/img paths need a forward slash in front of them: > > /css/ > /js/ > > Instead of: > > css/ > js/ > > I dont understand why they dont have them to begin with. You can > change it in the cake/config/paths files. > > On Feb 1, 5:23 am, Sridhar Kuppalli > wrote: > > Hi All, > > I am new to CakePHP. In my site i am facing this problem > > > > when i sayhttp://examplesite/products everything is working fine. > > But when i add a slash at the end of url (http://examplesite/products/), > the > > page is displaying without CSS. > > > > Please help me to solve this. > > > > - - - - - - - - - - - - - - - > > Thanks & Regards > > S Kuppalli N > > > --~--~-~--~~~---~--~~ 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: URL Problem | Adding Slash at the end makes any difference ?
You should use helpers to output anything that contains in-site URL. CSS & JS include, links, images. On Feb 1, 7:23 pm, Sridhar Kuppalli wrote: > Hi All, > I am new to CakePHP. In my site i am facing this problem > > when i sayhttp://examplesite/products everything is working fine. > But when i add a slash at the end of url (http://examplesite/products/), the > page is displaying without CSS. > > Please help me to solve this. > > - - - - - - - - - - - - - - - > Thanks & Regards > S Kuppalli N --~--~-~--~~~---~--~~ 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: URL Problem | Adding Slash at the end makes any difference ?
Your css/js/img paths need a forward slash in front of them: /css/ /js/ Instead of: css/ js/ I dont understand why they dont have them to begin with. You can change it in the cake/config/paths files. On Feb 1, 5:23 am, Sridhar Kuppalli wrote: > Hi All, > I am new to CakePHP. In my site i am facing this problem > > when i sayhttp://examplesite/products everything is working fine. > But when i add a slash at the end of url (http://examplesite/products/), the > page is displaying without CSS. > > Please help me to solve this. > > - - - - - - - - - - - - - - - > Thanks & Regards > S Kuppalli N --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
URL Problem | Adding Slash at the end makes any difference ?
Hi All, I am new to CakePHP. In my site i am facing this problem when i say http://examplesite/products everything is working fine. But when i add a slash at the end of url (http://examplesite/products/), the page is displaying without CSS. Please help me to solve this. - - - - - - - - - - - - - - - Thanks & Regards S Kuppalli N --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---