Camel cased file names for PHP classes are the best approach and helps for simple 1 to 1 autoloading. It's based off of Javas packaging and naming architecture.
However, camel cased folders are evil. On Nov 3, 1:16 pm, Thiago Belem <cont...@thiagobelem.net> wrote: > http://book.cakephp.org/2.0/en/appendices/2-0-migration-guide.html > > File and Folder > naming<http://book.cakephp.org/2.0/en/appendices/2-0-migration-guide.html#fi...> > > In CakePHP 2.0 we rethought the way we are structuring our files and > folders. Given that PHP 5.3 is supporting namespaces we decided to prepare > our code base for adopting in a near future this PHP version, so we adopted > thehttp://groups.google.com/group/php-standards/web/psr-0-final-proposal. > At first we glanced at the internal structure of CakePHP 1.3 and realized > that after all these years there was no clear organization in the files, > nor did the directory structure really hint where each file should be > located. With this change we would be allowed to experiment a little with > (almost) automatic class loading for increasing the overall framework > performance. > > Biggest roadblock for achieving this was maintaining some sort of backwards > compatibility in the way the classes are loaded right now, and we > definitely did not want to become a framework of huge class prefixes, > having classnames like My_Huge_Class_Name_In_Package. We decided adopting a > strategy of keeping simple class names while offering a very intuitive way > of declaring class locations and clear migration path for future PHP 5.3 > version of CakePHP > -- > ***Thiago Belem* > Desenvolvedor > Rio de Janeiro - RJ - Brasil > > +55 (21) 8865.9250 > thiagobelem.net > cont...@thiagobelem.net > > *Skype / gTalk **»* thiago.belem.web > *LinkedIn* *»* br.linkedin.com/in/thiagobelem/pt* > Assando Sites*, curso de CakePHP *»* assando-sites.com.br > > 2011/11/3 Martin Bean <mar...@mcbwebdesign.co.uk> > > > > > > > > > Having been a long-time user of CakePHP 1.3, I was wondering why file and > > folder names are now CamelCased rather than just being lowercase and > > underscored? > > > Personally, I'm a fan of using lowercase and underscores in filenames > > (then CamelCase in my actual class declarations) so this change is pretty > > jarring to me. > > > -- > > Our newest site for the community: CakePHP Video Tutorials > >http://tv.cakephp.org > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd 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 > > athttp://groups.google.com/group/cake-php -- 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