PHP Developers Network
http://forums.devnetwork.net/

Tips on code organization
http://forums.devnetwork.net/viewtopic.php?f=19&t=135807
Page 1 of 1

Author:  Live24x7 [ Mon May 28, 2012 5:01 pm ]
Post subject:  Tips on code organization

Developing my most complex php script so far.
As the number of files and code get larger the question of how to organize them comes up

so far i have 4 folders

1) user manageent folder - logins/logouts
2) the core processes folder
3) the design folder (Views)
4) classes

I am not looking for any specific tip..but rather any thing that you have learned over the years with experience as to what works best.

Things like:

what should be placedin the root folder and what goes into separate folder ?

and anything related to this.

thanks

Author:  social_experiment [ Tue May 29, 2012 3:15 am ]
Post subject:  Re: Tips on code organization

if you haven't already done this take a look at existing cms for ideas on file structures

Author:  Live24x7 [ Tue May 29, 2012 11:37 am ]
Post subject:  Re: Tips on code organization

thats a nice suggestion will look at wordpress or joomla structure

Author:  Celauran [ Tue May 29, 2012 11:41 am ]
Post subject:  Re: Tips on code organization

You'd probably do better to look at the file layout of a PHP Framework. Most CMSes I've encountered are frightfully poorly written. They're good at what they do, but I wouldn't use them as references for best practices.

Author:  Live24x7 [ Tue May 29, 2012 12:57 pm ]
Post subject:  Re: Tips on code organization

Thanks ..Inspecting the code structure of CI - and i see reasons why MVC is better for code modification and extensibility

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/