Thursday, April 2, 2009

An external URL pointing to the application

Hi folks, morning (here in Brazil)!

I'm developing an application wich sends an e-mail to a claimant. This
e-mail contains a complete URL that points to an action wich validates
the claimant's e-mail account.

The problem is I have two development environments: test (my CPU) and
production (the HTTP server).

So, how to send the correct ***domain*** in the URL, automaticaly?

CakePHP controllers has both $base and $here properties "relative to
the webroot of the application", but these properties don't solve my
problem.

Thanks for any help.
--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: