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 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
> [email protected] For more options, visit this group at 
> http://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
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to