2008/8/30 Dr. Tarique Sani <[EMAIL PROTECTED]>

>
> On Sat, Aug 30, 2008 at 3:14 PM, Hoddy <[EMAIL PROTECTED]> wrote:
> >
> >
> > cake ver: RC 1.20796 (latest version)
> >
> > Hi
> >
> > Has anyone noticed that links are created without the domain name when
> > using them in elements for the email component?
> >
> > I'm using same syntax that i use elsewhere in views where the domain
> > name
> > appears in the link
> >
> > the code im using is...
> >
> > <?php echo $html->link('view the advert details on the website...',
> >                                       '/adverts/view/'. $Advert['id']  );
> ?>
> >
> >
>
> $html->link() will not give you a full URL
>
> you need to use $html->url() with the second param set as true to get
> the complete URL
>
> I will leave it as an exercise for to you use the above two in conjunction
> :)
>
> HTH
>
> Tarique
>

- In short, you need to do, <?php echo $html->link('view the advert details
on the website...', $html->url('/adverts/view/'. $Advert['id'], true)); ?>

-- 
Amit

http://amitrb.wordpress.com/
http://coppermine-gallery.net/
http://cheesecake-photoblog.org/
http://www.sanisoft.com/blog/author/amitbadkas

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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