On 4/19/06, Helen Hoke <[EMAIL PROTECTED]> wrote:
Hi, I am quick new to CakePHP. I love it so much!
Now I have a question. I am working on an project , say ABC. Now I put
it under a directory called ABC in my public_html folder. Now I can
access my project by
www.mycompany.com/XYZ
I created a model and correspondent controller and views, called
products.
Now if I call "/products/add" in a view, it goes to this url:
www.mycompany.com/products/add, which should be
www.mycompany.com/XYZ/products/add.
I can fix this problem by calling "/XYZ/products/add" in a view
instead. However, i don't want to hard code the path, cause it may
change later. My question is, is there a way that i can set a
environment variable or global variable called path, and let all my
views look it up at run time? How?
Thank you so much
--
Armando Sosa
www.nolimit-studio.com
www.dospuntocero.info
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---
- how to set environment variable Helen Hoke
- Re: how to set environment variable [EMAIL PROTECTED]
- Re: how to set environment variable Armando Sosa
- Re: how to set environment variable Larry E. Masters aka PhpNut
