Hi
My Javascript helper is returning a wrong path

/cake/treecms/js/fckeditor.js instead of 
/cake/treecms/app/webroot/js/fckeditor.js

so app/webroot/ is missing.

I just change dev server could it be the cause of that ? I'm confused.



the javascript helper looks like that :

    function link($url)
    {
      if(strpos($url, ".") === false) $url .= ".js";
      return sprintf($this->tags['javascriptlink'], 
$this->webroot.JS_URL.$this->themeWeb.$url);
    }

I tested:
$this->webroot returns /cake/treecms/
and JS_URL returns js/

olivvv



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to