I'm sending e-mails to users. These e-mails contain links to the app.

On Mar 22, 7:04 pm, brian <bally.z...@gmail.com> wrote:
> On Sun, Mar 22, 2009 at 7:14 PM, mattalexx <mattal...@gmail.com> wrote:
>
> > Hello,
>
> > I am trying to find a function or constant that will reliably give me
> > the app's base URL, even when I'm in a shell and there's no HTTP being
> > spoken and therefore there's a limited $_SERVER var.
>
> > Am I going to have to write my own Configure value? It seems like such
> > basic info, the URL of your app.
>
> Use the -app switch
>
> http://book.cakephp.org/view/108/the-cakephp-console
>
> > Also, I would like it to know if there is the app is being requersted
> > from a subfolder. If my app is athttp://www.example.com, I would like
> > it return that. If my app is athttp://www.example.com/path/to/app, I
> > would like that value.
>
> Why would you want that when using the console? If there's "no HTTP
> being spoken" it doesn't make a lot of sense to be using a URL.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to