PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Mon Oct 14, 2019 9:15 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Mon May 28, 2012 5:01 pm 
Offline
Forum Contributor

Joined: Sat Nov 19, 2011 10:32 am
Posts: 194
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


Top
 Profile  
 
PostPosted: Tue May 29, 2012 3:15 am 
Offline
DevNet Master
User avatar

Joined: Sun Feb 15, 2009 12:08 pm
Posts: 2794
Location: .za
if you haven't already done this take a look at existing cms for ideas on file structures

_________________
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering


Top
 Profile  
 
PostPosted: Tue May 29, 2012 11:37 am 
Offline
Forum Contributor

Joined: Sat Nov 19, 2011 10:32 am
Posts: 194
thats a nice suggestion will look at wordpress or joomla structure


Top
 Profile  
 
PostPosted: Tue May 29, 2012 11:41 am 
Offline
Moderator
User avatar

Joined: Tue Nov 09, 2010 3:39 pm
Posts: 6425
Location: Montreal, Canada
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.

_________________


Top
 Profile  
 
PostPosted: Tue May 29, 2012 12:57 pm 
Offline
Forum Contributor

Joined: Sat Nov 19, 2011 10:32 am
Posts: 194
Thanks ..Inspecting the code structure of CI - and i see reasons why MVC is better for code modification and extensibility


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group