Ok, finally fixed it.
Like I said before:
"And btw, I did find a way to give the browsers the css-files it
needed
from tinyMCE, but then there were the images that're used in the css-
files which still didn't work."

So I "disabled" that fix to search for another one. This morning I
just "enabled" the fix again and suddenly the images worked as well,
so the fix works...

Here's the fix:

                function _checkForFile() {
                        $params = $this->params;

                        $cond = in_array(
                                ucfirst($params['pass'][0]),
                                Configure::listobjects('plugin')
                        );

                        if ($cond) {
                                array_unshift($params['pass'], 'plugins');
                                $params['url']['url'] = implode(
                                        '\\',
                                        $this->_insertArrayIndex(
                                                $params['pass'],
                                                'vendors',
                                                2
                                        )
                                );

                                if (is_file(APP . $params['url']['url'])) {
                                        Configure::write('debug', 0);
                                        header('Content-type: text/css');
                                        readfile(APP . $params['url']['url']);
                                        exit;
                                }
                        }
                }

Call that function in the beforeFilter() function of the AppController
--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to