That did it! In cake/app_controller.php, I added this:

function beforeFilter() {
    $this->base = 'http://mysite';
}

>From there all the html->link() methods point to the correct place.
Thanks, Nate!

On Feb 11, 6:52 pm, "nate" <[EMAIL PROTECTED]> wrote:
> No, more like
>
> function beforeFilter() {
>     $this->base = '/';
>
> }
>
> On Feb 11, 8:47 pm, "BlenderStyle" <[EMAIL PROTECTED]> wrote:> I tried 
> putting $this->base = '/'; in my controller, and the
> > AppController and I got this error message:
> > Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION
>
> > On Feb 11, 4:46 pm, "nate" <[EMAIL PROTECTED]> wrote:> That didn't seem to 
> > do anything because those values get assigned at
> > > runtime.  Try $this->base = 'x'; in your controller.  That value will
> > > get assigned to the view.
>
> > > On Feb 11, 7:34 pm, "BlenderStyle" <[EMAIL PROTECTED]> wrote:
>
> > > > No one has any ideas on how to do this?


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to