[FX.php List] Curious: include-page naming conventions

Stephen Grant stephen.grant at 724.com.au
Thu Oct 6 12:13:34 MDT 2011


Agreed. Cake is by dar the best. We use it exclusively now. We've cakeified fx so it works as a model within cake...


//
Stephen Grant


On 07/10/2011, at 4:27, Dale Bengston <dale.bengston at gmail.com> wrote:

> Cake.php has a very concise naming convention laid out in its documentation. I wish I'd had a reference like this before I started developing web apps a dozen years ago. I had to think up my own.
> 
> http://book.cakephp.org/view/23/File-and-Classname-Conventions
> 
> Dale
> 
> On Oct 5, 2011, at 5:48 PM, Stephen Grant wrote:
> 
>> Joel;
>> 
>> There is no 'standard' as far as naming of php files is concerned when it comes to linear programming as is prevalent with most developers that are starting out.
>> 
>> an extra dot such as page.inc.php won't cause any issues nor will a prefixed underscore.
>> 
>> Having said there are frameworks out there that employ standards for file naming, file location and separation of function into traditional MVC Architectures.  I'd encourage you to look at those as they not only make application development much faster, they also bring order to chaos  :)
>> 
>> Steve
>> 
>> 
>> 
>> From: "Joel Shapiro" <jsfmp at earthlink.net>
>> To: "FX.php Discussion List" <fx.php_list at mail.iviking.org>
>> Sent: Thursday, October 6, 2011 9:40:50 AM
>> Subject: [FX.php List] Curious: include-page naming conventions
>> 
>> Hey All
>> 
>> I've been working a bit in a number of other people's php projects  
>> lately, and have come across a couple naming conventions for include  
>> pages that I'd never noticed before:
>> 
>> page.inc.php  & _page.php
>> 
>> Do people here use these (or other) conventions?  Will an extra dot in  
>> a file name *never* cause problems?
>> 
>> Other thoughts on the topic?
>> 
>> -Joel
>> _______________________________________________
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
>> http://www.iviking.org/mailman/listinfo/fx.php_list
>> 
>> _______________________________________________
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
>> http://www.iviking.org/mailman/listinfo/fx.php_list
> 
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20111007/233d7e79/attachment-0001.html


More information about the FX.php_List mailing list