If it's more than two files (behavior + test case) it's worthwhile to point out that plugins are not only good for redistributing your code, but it's also good for packaging your tests and everything in a different repo that has its own history and that you can submodule via git. This assumes the libs are only specific to the behavior and their methods aren't used in other areas.
Just a thought! On Monday, April 16, 2012 5:05:09 PM UTC-7, Daniel Baird wrote: > > > Hi Cake dudes, > > I'm new to Cake, and I'm adding a behavior to a model. I've done that by > writing a PHP file that I save in the Behavior directory. > > Now I'm making that Behavior a bit more complicated, and I'd like to split > some sections of code out into separate files. This Behavior is pretty > specific to my application, I can't imagine wanting to make it a > redistributable plugin or anything. > > So here's my question: where's the recommended place to save those > supporting files? Can I just make a subdir or Behavior and save them all > in there? Or am I supposed to save my additional files into the Vendor dir > or something like that. > > Thanks in advance > > Daniel > -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php