Re: App::import broken in RC3
Thanks mark, I was afraid you were going to say that. I'm going to try doing a difference check between my source code, and the RC3 zip file. Maybe I failed to merge the code correctly. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: App::import broken in RC3
I get 98 passes no fails no exceptions on both my home computer and work computer. -Mark On Oct 15, 11:31 am, Mathew <[EMAIL PROTECTED]> wrote: > * Failed > at [D:\work\TRUNK\php\cake_1.2.0\cake\tests\cases\libs > \configure.test.php line 440] > \work\TRUNK\php\cake_1.2.0\cake\tests\cases\libs > \configure.test.php -> AppImportTest -> testLoadingWithSearch > * Failed > at [D:\work\TRUNK\php\cake_1.2.0\cake\tests\cases\libs > \configure.test.php line 454] > \work\TRUNK\php\cake_1.2.0\cake\tests\cases\libs > \configure.test.php -> AppImportTest -> testLoadingWithSearchArray > * Failed > at [D:\work\TRUNK\php\cake_1.2.0\cake\tests\cases\libs > \configure.test.php line 516] > \work\TRUNK\php\cake_1.2.0\cake\tests\cases\libs > \configure.test.php -> AppImportTest -> testLoadingVendor > * Failed > Equal expectation fails at character 0 with [] and [this is the > test plugin asset css file] at [D:\work\TRUNK\php\cake_1.2.0\cake\tests > \cases\libs\configure.test.php line 517] > \work\TRUNK\php\cake_1.2.0\cake\tests\cases\libs > \configure.test.php -> AppImportTest -> testLoadingVendor > * Failed > at [D:\work\TRUNK\php\cake_1.2.0\cake\tests\cases\libs > \configure.test.php line 522] > \work\TRUNK\php\cake_1.2.0\cake\tests\cases\libs > \configure.test.php -> AppImportTest -> testLoadingVendor > * Failed > Equal expectation fails at character 0 with [] and [this is the > test asset css file] at [D:\work\TRUNK\php\cake_1.2.0\cake\tests\cases > \libs\configure.test.php line 523] > \work\TRUNK\php\cake_1.2.0\cake\tests\cases\libs > \configure.test.php -> AppImportTest -> testLoadingVendor > * Failed > at [D:\work\TRUNK\php\cake_1.2.0\cake\tests\cases\libs > \configure.test.php line 526] > \work\TRUNK\php\cake_1.2.0\cake\tests\cases\libs > \configure.test.php -> AppImportTest -> testLoadingVendor > * Failed > at [D:\work\TRUNK\php\cake_1.2.0\cake\tests\cases\libs > \configure.test.php line 527] > \work\TRUNK\php\cake_1.2.0\cake\tests\cases\libs > \configure.test.php -> AppImportTest -> testLoadingVendor > * Failed > at [D:\work\TRUNK\php\cake_1.2.0\cake\tests\cases\libs > \configure.test.php line 530] > \work\TRUNK\php\cake_1.2.0\cake\tests\cases\libs > \configure.test.php -> AppImportTest -> testLoadingVendor > * Failed > at [D:\work\TRUNK\php\cake_1.2.0\cake\tests\cases\libs > \configure.test.php line 531] > \work\TRUNK\php\cake_1.2.0\cake\tests\cases\libs > \configure.test.php -> AppImportTest -> testLoadingVendor > * Failed > at [D:\work\TRUNK\php\cake_1.2.0\cake\tests\cases\libs > \configure.test.php line 536] > \work\TRUNK\php\cake_1.2.0\cake\tests\cases\libs > \configure.test.php -> AppImportTest -> testLoadingVendor > * Failed > Equal expectation fails at character 0 with [] and [This is a > file with dot in file name] at [D:\work\TRUNK\php\cake_1.2.0\cake\tests > \cases\libs\configure.test.php line 537] > \work\TRUNK\php\cake_1.2.0\cake\tests\cases\libs > \configure.test.php -> AppImportTest -> testLoadingVendor --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: App::import broken in RC3
can u please explain it .. how do i use the HTML helper? On Oct 15, 8:28 pm, Mathew <[EMAIL PROTECTED]> wrote: > JS files are related to views. > > You need to add them to your meta tags in the HTML header. You can use > the HTML helper for this I think? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: App::import broken in RC3
* Failed at [D:\work\TRUNK\php\cake_1.2.0\cake\tests\cases\libs \configure.test.php line 440] \work\TRUNK\php\cake_1.2.0\cake\tests\cases\libs \configure.test.php -> AppImportTest -> testLoadingWithSearch * Failed at [D:\work\TRUNK\php\cake_1.2.0\cake\tests\cases\libs \configure.test.php line 454] \work\TRUNK\php\cake_1.2.0\cake\tests\cases\libs \configure.test.php -> AppImportTest -> testLoadingWithSearchArray * Failed at [D:\work\TRUNK\php\cake_1.2.0\cake\tests\cases\libs \configure.test.php line 516] \work\TRUNK\php\cake_1.2.0\cake\tests\cases\libs \configure.test.php -> AppImportTest -> testLoadingVendor * Failed Equal expectation fails at character 0 with [] and [this is the test plugin asset css file] at [D:\work\TRUNK\php\cake_1.2.0\cake\tests \cases\libs\configure.test.php line 517] \work\TRUNK\php\cake_1.2.0\cake\tests\cases\libs \configure.test.php -> AppImportTest -> testLoadingVendor * Failed at [D:\work\TRUNK\php\cake_1.2.0\cake\tests\cases\libs \configure.test.php line 522] \work\TRUNK\php\cake_1.2.0\cake\tests\cases\libs \configure.test.php -> AppImportTest -> testLoadingVendor * Failed Equal expectation fails at character 0 with [] and [this is the test asset css file] at [D:\work\TRUNK\php\cake_1.2.0\cake\tests\cases \libs\configure.test.php line 523] \work\TRUNK\php\cake_1.2.0\cake\tests\cases\libs \configure.test.php -> AppImportTest -> testLoadingVendor * Failed at [D:\work\TRUNK\php\cake_1.2.0\cake\tests\cases\libs \configure.test.php line 526] \work\TRUNK\php\cake_1.2.0\cake\tests\cases\libs \configure.test.php -> AppImportTest -> testLoadingVendor * Failed at [D:\work\TRUNK\php\cake_1.2.0\cake\tests\cases\libs \configure.test.php line 527] \work\TRUNK\php\cake_1.2.0\cake\tests\cases\libs \configure.test.php -> AppImportTest -> testLoadingVendor * Failed at [D:\work\TRUNK\php\cake_1.2.0\cake\tests\cases\libs \configure.test.php line 530] \work\TRUNK\php\cake_1.2.0\cake\tests\cases\libs \configure.test.php -> AppImportTest -> testLoadingVendor * Failed at [D:\work\TRUNK\php\cake_1.2.0\cake\tests\cases\libs \configure.test.php line 531] \work\TRUNK\php\cake_1.2.0\cake\tests\cases\libs \configure.test.php -> AppImportTest -> testLoadingVendor * Failed at [D:\work\TRUNK\php\cake_1.2.0\cake\tests\cases\libs \configure.test.php line 536] \work\TRUNK\php\cake_1.2.0\cake\tests\cases\libs \configure.test.php -> AppImportTest -> testLoadingVendor * Failed Equal expectation fails at character 0 with [] and [This is a file with dot in file name] at [D:\work\TRUNK\php\cake_1.2.0\cake\tests \cases\libs\configure.test.php line 537] \work\TRUNK\php\cake_1.2.0\cake\tests\cases\libs \configure.test.php -> AppImportTest -> testLoadingVendor --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: App::import broken in RC3
When I run the test case for configure.test.php I get the following results. "2/2 test cases complete: 86 passes, 12 fails and 0 exceptions." 12 have failed. Can anyone else confirm these are expected failures for RC3? Is anyone else having all the tests pass for configure.test.php? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: App::import broken in RC3
JS files are related to views. You need to add them to your meta tags in the HTML header. You can use the HTML helper for this I think? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: App::import broken in RC3
Hi, I am a complete newbie in cakePHP i want to include a .js file into my page. what i have done is put the file in the ROOT-FOLDER/vendors folder ( i also tried putting them in app/vendors ) then the code is : App::import('Vendor', 'filename') Also tried App::import('vendor', array('file' => 'filename.ext')); none of the above is working for me .. any help please about what m i doing wrong here? I am using cake_1.2.0.7692-rc3 please advice On Oct 15, 7:46 pm, Mathew <[EMAIL PROTECTED]> wrote: > I'm trying now to run the test case for configure.test.php, but it > fails. All the other core unit tests are failing as well. > > There must be some requirements need in place before you can run the > core unit tests. Is there a document anywhere talking about to get > these running? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: App::import broken in RC3
I'm trying now to run the test case for configure.test.php, but it fails. All the other core unit tests are failing as well. There must be some requirements need in place before you can run the core unit tests. Is there a document anywhere talking about to get these running? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: App::import broken in RC3
Oh, in a plugin... I have never tried that. I have found a few things that have broken for me in rc3. You could try to locate the change that broke this for you to help the core team. It can take a bit of head-scratching but just narrowing it down can be helpful. You will find the tests for vendor files at the bottom of the file configure.test.php I didn't see any example that loaded a "file" from a plugin so you may have a legitimate bug on your hands. /Martin On Oct 15, 3:06 pm, Mathew <[EMAIL PROTECTED]> wrote: > Thanks Martin, > > I've tried all those variations, but my problems appears when trying > to import something from a plugin's vendor folder, and also trying to > define the file name. > > All my other imports for vendors in the same plugins folder work fine. > It's just when I tried to define the file name that it's broken. > > This use to work under RC2. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: App::import broken in RC3
Thanks Martin, I've tried all those variations, but my problems appears when trying to import something from a plugin's vendor folder, and also trying to define the file name. All my other imports for vendors in the same plugins folder work fine. It's just when I tried to define the file name that it's broken. This use to work under RC2. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: App::import broken in RC3
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 cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: App::import broken in RC3
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%2Flibs%2Fconfigure.php%407690&old=trunk%2Fcake%2F1.2.x.x%2Fcake%2Flibs%2Fconfigure.php%407296 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 cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---