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
-~----------~----~----~----~------~----~------~--~---