I usually do something like <script> var window.basePath = '<?php echo $this->webroot; ?>'; </script>
in my layouts. Then when making urls in javascript url: window.basePath + '/posts/delete/' + id Or some such thing. That way I always get an absolute URL. -Mark On Jun 9, 11:46 pm, eiji <[email protected]> wrote: > Hi Sam, > > Thanks for that, is there an easier way to get the absolute path of a > certain project? > > or is this the best way > ->http://groups.google.co.uk/group/cake-php/browse_thread/thread/e40c3c... > > Thanks. :) > > On Jun 10, 11:22 am, Sam Sherlock <[email protected]> wrote: > > > > > use absolute urls in cake > > > - S > > > 2009/6/10 eiji <[email protected]> > > > > bump.. > > > > Has no body encountered this with Cakephp + Mootools? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
