PHP Website


I just had to finish a huge project in a relatively short time. It was a PHP driven admin system that had to display various information to users and allow all content to be editable. There was a blog-like section and afew sections that needed to scan a directory. Users could only be added by administrators and you had to login to see any of it. Quite a pain considering that I was told to give an estimate at a time where only a small portion of the work was told to me. Luckily I lied and said it take longer.

So, the question is, what can I conjure up to make my life easier in the future. First, a solid login system is needed. Also, a way to organise sections of the site, including subsections. Each section should provide title text, breadcrumb text, menu text, content, edit content forms, templates and so on. Finally, a site object has to tie everything together.

This needs to be very freeform. First, the login system. EVolt has a good rundown that I think I’ll gut and modify to my liking. In its current form, it has too much involvement with the form object. Next, I need to create a Section class. It needs the following:

  • Variables
    • title_text
    • menu_text
    • breadcrumb_text
    • id
    • template
    • subsections
    • content
    • is_current
    • database
  • Methods
    • Section()
    • get_content()
    • add_subsection(section)
    • set_current()
    • draw()

The main Site class should be similar to Section, but act more as a wrapper and tell which section is current. That might be able to work.

Posted on

Leave a reply