Re: email component links not including domain name
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... > > > > 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, 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 cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: email component links not including domain name
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... > > 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 -- = Cheesecake-Photoblog: http://cheesecake-photoblog.org PHP for E-Biz: http://sanisoft.com = --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
email component links not including domain name
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... link('view the advert details on the website...', '/adverts/view/'. $Advert['id'] ); ?> which renders the link as ... http://adverts/view/1 I have hard coded the link in the element to get round this, but it either looks like a bug in the component or that im doing something stupid Anyone seen similar ? thanks in advance Chris --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---