Media Plugin: Missing Behavior File

2010-05-07 Thread ramonmaruko
I'm using CakePHP 1.3 Stable and tried Media plugin 1.3alpha and also
fetching branch 1.3

I was trying to follow the 
http://wiki.github.com/davidpersson/media/media-behavior
page and have this on my movie.php:


var $actsAs = array(
'Media.Transfer',
'Media.Media'
);

but when I try to access the Movies Controller, CakePHP displays this
flash message:

Error: The Behavior file app/models/behaviors/media.media.php can not
be found or does not exist.

If I only use the Transfer behavior then no error messages are
displayed and I can upload files fine. I hope someone could help me
with this.

Thanks,

Marco

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


Re: Media Plugin: Missing Behavior File

2010-05-07 Thread ramonmaruko
Seems like the Media Behavior has been moved to libs(?). I ended up
using the Monolithic Attachment Model recipe.

On May 7, 9:33 pm, ramonmaruko ramonmar...@gmail.com wrote:
 I'm using CakePHP 1.3 Stable and tried Media plugin 1.3alpha and also
 fetching branch 1.3

 I was trying to follow 
 thehttp://wiki.github.com/davidpersson/media/media-behavior
 page and have this on my movie.php:

         var $actsAs = array(
                 'Media.Transfer',
                 'Media.Media'
         );

 but when I try to access the Movies Controller, CakePHP displays this
 flash message:

 Error: The Behavior file app/models/behaviors/media.media.php can not
 be found or does not exist.

 If I only use the Transfer behavior then no error messages are
 displayed and I can upload files fine. I hope someone could help me
 with this.

 Thanks,

 Marco

 Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with 
 their CakePHP related questions.

 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 
 athttp://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


Re: Media Plugin: Missing Behavior File

2010-05-07 Thread David Persson
Hey Marco,

The documentation has not yet been updated for the upcoming 1.3
version of the plugin. If you're using that version you are (except
when asking here on the list) on your own. However there does exist a
page where I track changes which might be interesting when migrating
from one version to another at 
http://wiki.github.com/davidpersson/media/changes.

The Media Behavior has just been split up into several behaviors in
1.3.x. The libs folder contains the media processing library.

- David

On 7 Mai, 17:00, ramonmaruko ramonmar...@gmail.com wrote:
 Seems like the Media Behavior has been moved to libs(?). I ended up
 using the Monolithic Attachment Model recipe.

 On May 7, 9:33 pm, ramonmaruko ramonmar...@gmail.com wrote:



  I'm using CakePHP 1.3 Stable and tried Media plugin 1.3alpha and also
  fetching branch 1.3

  I was trying to follow 
  thehttp://wiki.github.com/davidpersson/media/media-behavior
  page and have this on my movie.php:

          var $actsAs = array(
                  'Media.Transfer',
                  'Media.Media'
          );

  but when I try to access the Movies Controller, CakePHP displays this
  flash message:

  Error: The Behavior file app/models/behaviors/media.media.php can not
  be found or does not exist.

  If I only use the Transfer behavior then no error messages are
  displayed and I can upload files fine. I hope someone could help me
  with this.

  Thanks,

  Marco

  Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp others 
  with their CakePHP related questions.

  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 
  athttp://groups.google.com/group/cake-php?hl=en

 Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with 
 their CakePHP related questions.

 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 
 athttp://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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