Re: How to specify components in a subfolder
Nope. On Oct 14, 7:40 am, zonium [EMAIL PROTECTED] wrote: I've used $components = array ('ComponentA, ComponentB, ComponentC, ComponentD, ComponentE, ComponentF') to tell the controller that I need the ComponentA, B, C, D, E and F. Now I want to move these components into a folder named ABCDE (inside the standard 'components' folder) because these components are functionally related, and are only needed by one controller. Since these components are not used by any other controllers in the application, use of $componentPaths in bootstrap.php might not be a good idea. Any other ways I can specify the path to these components in the controller? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP 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: How to specify components in a subfolder
I'd say for the sake of simplicity you might as well just combined all your components into a single file since I'm guessing if you are using 1 you'll end up using most of the others. Since you're only including 1 file instead of several small files chances are it'll actually run slightly faster On Oct 15, 12:40 am, zonium [EMAIL PROTECTED] wrote: I've used $components = array ('ComponentA, ComponentB, ComponentC, ComponentD, ComponentE, ComponentF') to tell the controller that I need the ComponentA, B, C, D, E and F. Now I want to move these components into a folder named ABCDE (inside the standard 'components' folder) because these components are functionally related, and are only needed by one controller. Since these components are not used by any other controllers in the application, use of $componentPaths in bootstrap.php might not be a good idea. Any other ways I can specify the path to these components in the controller? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP 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 -~--~~~~--~~--~--~---