seems like a typical windows (wamp/xampp) problem
do you use opcode caches?
for me, it always dies then as well as soon as an error occures


On 3 Jul., 06:48, Jeremy Burns | Class Outfit
<jeremybu...@classoutfit.com> wrote:
> What does your Form code look like?
>
> Jeremy Burns
> Class Outfit
>
> http://www.classoutfit.com
>
> On 2 Jul 2011, at 16:06, Benj. D. wrote:
>
>
>
>
>
>
>
> > Hello,
>
> > I've installed the media plugin, all is right except that I get this
> > error when I try to send my form :
> > Fatal error: Class 'File' not found in D:\Xampp\xampplite\htdocs
> > \MyProject\app\plugins\media\models\behaviors\coupler.php on line 136
>
> > Here is a part of the code around the line 136 :
> > [code]
> > function beforeSave(&$Model) {
>
> > ...
>
> >            if (isset($Model->data[$Model->alias]['file'])) {
> >                    $File = new File($Model->data[$Model->alias]['file']);   
> >  // LINE
> > 136
> > ...
> > [/code]
>
> > I tried to add App::import('Core', 'File'); before the class
> > declaration but the server shut down immediatly and I need to restart
> > it...
>
> > Is there someone who can help me?
>
> > Thanks
>
> > --
> > Our newest site for the community: CakePHP Video 
> > Tutorialshttp://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help 
> > others with their CakePHP related questions.
>
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> > athttp://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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

Reply via email to