Hi everybody, pelase i would appreciate if you can help me with this problem. Seems very stupid but i searched in these group and couldn't find anything:
I want to know if there exists some cakephp function which returns the current cakephp's path. I mean, because everybody could have a different location for cake inside their server's document root, how do i know it ? for example something which returns, www.example,.com/cake or www.example2.com/projects/cake The problem i have is that i have a menu with MM_swapimage (the macromedia code for swapping images) and i need to write the image location. This is the problem because depending on the server this location changes. When i use $html->image this works perfect (because cake rewrites the url to the correct path) but how would i do this for this javascript code ?i only need the url. Because i've been looking for this code so long i opted for do a direct path analysis but still have the same problem; i need to know cake web path so i can start working from it. Thanks in advance. Julian --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
