Jump to content

I need help on how to design projects


turkman

Recommended Posts

like my current one right now. Its got to the point where i have so much functions and files that to change or add something takes alot of effort.

 

a few questions.

 

is it better to have many files... i.e a file for each set of functions - so they are all stored together or is it better to keep all your functions in one file which may become cluttered?

 

Do you build all the php functionality first... then after that is complete do you add the html or do you do it together?

 

I tend to do it together but now for example, i was thinking of adding a quote button to my forum - but because of the way i have written it - id have to edit code in the following functions

 

get_stickies_notmal

get_stickies_mod

get_threads_normal

get_threads_mod

show_thread_normal

show_thread_mod

 

It gets to the point where its soul destroying if you want to make a change.

 

I would also like to get some advice on a site settings page.

 

i.e you have a page of settings like

 

Site Title [input box]

Site Max threads [input box]

etc

 

[submit button]

 

where it updates all the info....

 

this is a long post but im just looking info on how to better plan and layout my projects to make them easier to add too.

Link to comment
https://forums.phpfreaks.com/topic/206581-i-need-help-on-how-to-design-projects/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.