As I understand it you have to change a few things. When defining "file", "name" becomes simply a unique identifier. You have to define the full path the the file in "file".
Also, I am not familiar with defining everything as an array either. I have always sent two parmeters to App::import(). First the type as its own parameter and second a string or an array. Look at the examples again and you will see how to write the path to the file. http://book.cakephp.org/view/538/Loading-Vendor-Files You can also choose to look at Daniel's nice roundup of pit-falls and fixes when importing vendor files: http://cakebaker.42dh.com/2008/03/26/loading-vendor-files/ /Martin On Oct 14, 7:46 pm, Mathew <[EMAIL PROTECTED]> wrote: > I'm a little confused how this got broken in RC3. > > I've looked at the changes from RC2 to RC3 in this url. > > https://trac.cakephp.org/changeset?new=trunk%2Fcake%2F1.2.x.x%2Fcake%... > > I don't see anything that should have broken my import statement, but > when debugging the code I can see that it's not working. > > I got to line 837 in configure.php where is says "$directory = > $_this->__find($find, true);", and that returns null. I'm not sure it's > > suppose that have gotten that far. > > $find is equal to "rss_fetch.inc" which is my file, but the __find() > method only checks the vendor folders. It appears to be ignoring the > subfolder "magpierss" defined in the name parameter. > > Could I have been using the wrong parameters? > > How would I import this file from my plugins vendor folder? > > "/app/plugins/gems/vendor/magpierss/rss_fetch.inc" --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
