Got it working. First I tried deprecated way of vendor('lastrss') and
it worked fine. So I tried App::import('vendor', 'lastrss') and it
also worked fine. Did not think it would be case sensitive, but in my
case (and maybe yours) it is.
On Jul 11, 9:31 am, clrockwell <[EMAIL PROTECTED]> wrote:
> If forgot to mention that I am importing a different class,
> lastrss.php
>
> Code: App::import('Vendor','lastrss');
>
> On Jul 11, 9:29 am, clrockwell <[EMAIL PROTECTED]> wrote:
>
> > If you happen to come by a solution, please post it here. I am having
> > the same issue. Using RC2, build 7296
>
> > On Jul 11, 4:47 am, RichardAtHome <[EMAIL PROTECTED]> wrote:
>
> > > Just tried:
>
> > > App::import("Vendor", "PHPBB_Login", false, null, 'phpbb.php');
>
> > > And I'm still getting the same error:
>
> > > Fatal error: Class 'PHPBB_Login' not found in C:\htdocs\projects
> > > \archimbolo\app\controllers\users_controller.php on line 42
>
> > > On Jul 10, 9:15 pm, "b logica" <[EMAIL PROTECTED]> wrote:
>
> > > > try
>
> > > > App::import("Vendor", "PHPBB_Login", false, null, 'phpbb.php');
>
> > > > On Thu, Jul 10, 2008 at 1:21 PM, RichardAtHome <[EMAIL PROTECTED]>
> > > > wrote:
>
> > > > > Hi all
>
> > > > > I have a vendor class I've put in \root\vendors\phpbb.php
>
> > > > > Which contains the class:
>
> > > > > class PHPBB_Login {
> > > > > }
>
> > > > > And am referencing it in my code with the following:
>
> > > > > App::import("Vendor", "PHPBB_Login", array("file"=>"phpbb.php"));
>
> > > > > (which I think is right)
>
> > > > > But when I try an instance the class with:
>
> > > > > $phpBB = new PHPBB_Login();
>
> > > > > I get the following error:
>
> > > > > Fatal error: Class 'PHPBB_Login' not found in C:\htdocs\projects
> > > > > \archimbolo\app\controllers\users_controller.php on line 41
>
> > > > > CakePHP isn't finding the vendor file, it also doesn't find it if I
> > > > > put it in app\vendors either.
>
> > > > > Where do I put the file? Or, what does App::Import need to look like
> > > > > for it to be able to find the vendor file?
>
> > > > > Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---