This message was a Google Group error, and was not sent to the list
properly. Ignore it

On 4/19/06, Armando Sosa <[EMAIL PROTECTED]> wrote:
> use $html->url() for generating correct Cake urls.
>
>
>
> 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
>
>  >
>
>


--
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to