Re: $this-Html-link with javascript back()

2012-09-19 Thread matze
Am Freitag, 25. Februar 2011 13:48:22 UTC+1 schrieb (unbekannt): i think its much better to add $this-set('referer',$this-referer()); to your beforeRender(); and $this-Html-link('back',$referer); to your view. one less reliance on js is a win in my book. Mike Karthauser

$this-Html-link with javascript back()

2011-02-25 Thread martin
can't find out how to resolve: a href=javascript:history.back()go back/a with: $this-Html-link -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related

Re: $this-Html-link with javascript back()

2011-02-25 Thread mikek
can't find out how to resolve: a href=javascript:history.back()go back/a with: $this-Html-link you can do echo $this-Html-link('go back',javascript:history.back()); i think its much better to add $this-set('referer',$this-referer()); to your beforeRender();

Re: $this-Html-link with javascript back()

2011-02-25 Thread Miles J
Or you can just do: a href=javascript:history.back()go back/a No need to use an HTML helper for a task its not needed for. On Feb 25, 4:48 am, mi...@brightstorm.co.uk wrote: can't find out how to resolve: a href=javascript:history.back()go back/a with: $this-Html-link you can do