Re: Vendor issue: Duplicate class name
On May 20, 2008, at 4:36 PM, Renan Gonçalves wrote: > Why not Cake_*ClassName* convention? Like Zend. BecauseZendHasReallyLongClassNames. (imho) -- John > On Tue, May 20, 2008 at 3:51 PM, jonknee <[EMAIL PROTECTED]> wrote: > > 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). > > > > > -- > Renan Gonçalves - Software Engineer > Cell Phone: +55 11 8633 6018 > MSN: [EMAIL PROTECTED] > São Paulo - SP/Brazil > > --~--~-~--~~~---~--~~ 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: Vendor issue: Duplicate class name
Why not Cake_*ClassName* convention? Like Zend. On Tue, May 20, 2008 at 3:51 PM, jonknee <[EMAIL PROTECTED]> wrote: > > 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). > > > -- Renan Gonçalves - Software Engineer Cell Phone: +55 11 8633 6018 MSN: [EMAIL PROTECTED] São Paulo - SP/Brazil --~--~-~--~~~---~--~~ 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: Vendor issue: Duplicate class name
Ugh, I'm screwed if there's nothing I can do about this now. :/ On May 20, 1:51 pm, jonknee <[EMAIL PROTECTED]> wrote: > 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 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: Vendor issue: Duplicate class name
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 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 -~--~~~~--~~--~--~---
Vendor issue: Duplicate class name
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! --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---