> 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment