Hi,

My Cake 1.2 installation:

- "Cake core" and "vendors dir" are in 'C:/WEB/cake'

- "App dir" is in 'C:/WEB/cake_apps/caketests'

- "Webroot dir" is in 'C:/WEB/www/caketests' (in the web server
document root).

I want use Fckeditor and share between multi-app.
So I copy FCK "editor dir", "fckconfig.js", "fckeditor.php", etc. in
'C:/WEB/cake/vendors/fckeditor/

Then I write "vendor('fckeditor')" at the top of my controller.
But when I try to instanciate my Fckeditor object in a helper/view,
Cake answer me "Class 'FCKeditor' not found"?!
Same problem if I write "vendor('fckeditor')" in my view or in my
helper...

How can I do that?

HELPER :

class FckeditorHelper extends Helper {
        public function load ($editor_name,$dimensions = array(),$toolbar =
'Default') {
                if (empty($dimensions))
                {
                        $dimensions['width'] = 500;
                        $dimensions['height'] = 300;
                }
                $my_editor = new FCKeditor($editor_name);
                $my_editor->BasePath =
'c:'.DS.'WEB'.DS.'cake'.DS.'vendors'.DS.'fckeditor/';
                $my_editor->Width = $dimensions['width'];
                $my_editor->Height = $dimensions['height'];
                $my_editor->ToolbarSet = $toolbar;
                $this->controller->set('fckeditor', $my_editor);
        }
}

Avairet


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to