On Fri, Jan 22, 2010 at 7:46 PM, thomaus <[email protected]> wrote: > Hi, > > Thanks! Nice trick. So, problem technically solved but still, why the > urls are not relative in Javascript with Cake? Is it a Cake problem or > something else?
No, it's not a cake problem. In JavaScript, you can use relative or absolute url. When your controller accepts many parameter with some parameters optional and some required, we can't guarantee how parameters are passed. So, it's best to use absolute url. My approach for this is set javascript global object that contains base url, current controller, current actions with passed params. You can do this in AppController. -- regards, gedex blog: http://gedex.web.id Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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
