On May 20, 3:36 am, Matt Huggins <[EMAIL PROTECTED]> wrote: > I'm trying to import a vendor class, but the class I'm importing in > turn references another 3rd party class named "cache". Since there is > already a CakePHP class named "Cache", I get an error message stating > "Fatal Error: Cannot redeclare class cache in [filename]". > > Does anyone have any clue how I can work around this? I don't want to > rename the vendor class since I'll need to perform future upgrades to > the class, not to mention that the class name is referenced throughout > much of the 3rd party code. I have no idea where to go from here. > Please help!
This is why namespaces are being introduced into PHP (originally as part of 6, but backported to 5.3) http://us2.php.net/manual/en/language.namespaces.php Unfortunately that's not going to help you now. You may be stuck renaming manually (well at least with a regex). --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
