Re: An external URL pointing to the application

2009-04-02 Thread grigri

You need to construct the link manually, with the url constructed with
the second parameter ("full") set to true:

Click here to destroy the internet

Or like this, if you so prefer:

echo $html->tag('a', 'Click here to destroy the internet', array(
  'rel' => 'dangerous',
  'href' => $html->url(array('controller' => 'internets', 'action' =>
'destroy'), true)
));

Of course, if the email is in plain text and you don't need an HTML
link, just use

echo $html->url(array('controller' => 'internets', 'action' =>
'destroy'), true);

hth
grigri

On Apr 2, 2:16 pm, Antônio Marco  wrote:
> 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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



An external URL pointing to the application

2009-04-02 Thread Antônio Marco

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