Hey Robert, The paths you get from the MediumHelper to they point to existing assets (try accessing the path directly). What is the actual HTML which gets rendered when you use <?php echo $medium->embed(...) ?> ?
MediumHelper::file() is quite flexible it takes both a single string argument as well as an array (like the ones you get as results from the Attachment model) having both a 'dirname' and 'basename' key/value pair. The model name should get stored in the table if you're using the provided element. How does the data array look like you're saving to the db? -David On 4 Sep., 19:49, robert matousek <[email protected]> wrote: > I'm hoping someone can help me use the Media Plugin developed by David > Persson. > First of all, I used the Attachment model to save some images. When I > try to render them using the MediumHelper, it generates the correct > paths, but images aren't showing? Any idea why? > > e.g. /media/filter/s/transfer/img/name.png > > What is the best way to use the MediumHelper file function? In the > slides it give two arguments, but when I look at the method it only > takes 1. Examples anybody? > > Last but not least, its not storing the Model name in the model column > of the Attachment tabel? How do I fix this? > > Given all the awesome functionality, it seems like its worth the extra > effort to use this plugin! > > Robert Matousek --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---
