Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6694889
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:09:18+00:00 2026-05-26T06:09:18+00:00

I’ve been coding for years and have found myself in a point of frustration.

  • 0

I’ve been coding for years and have found myself in a point of frustration. I am working on a new web based service that also has a UI and it will be developed from ground up. It will use some open source components, but is mainly a new thing in its own right.

But here’s my problem. Building such a system means building all of those components:

  • PHP backend
  • HTML views
  • CSS styles
  • JavaScript front-end
  • AJAX asynchronous connections

I want all of them to follow the same ‘pattern’, in a way that a module in the system consists of a folder or set of files that incorporates all of those components within that module.

But I am having a tough time with getting the architecture so that I would like it. Here is what I have so far:

  • The entire main system is more or less written in procedural PHP. This solves the request URL, deals with caching, logging and debugging and loads in other components.
  • PHP, when building the page, loads in module specific javascript files, CSS files, HTML files and other components based on the current module. This means that every module is as lightweight as possible, while being able to be extended however much based on current modules needs.
  • System also incorporates OOP components of objects (such as ‘users’ or other type of classes) that can be used system wide.
  • The system is built with MVC principles, though without OOP.

But I do feel really -dirty- for having built the main system in a procedural way. I did start writing it in OOP at first, but quickly found myself in headaches due to having to get everything fit the same system. It was OOP, but it was tightly coupled, which I disliked for while it was written the OOP way, components were really not that independent or were just a hassle to manage.

Are there any patterns or guides I could follow to get a better result? What I like about the current system is that I can call in anything, pre-view-rendering PHP, or HTML views, CSS styling, additional Javascript functions and AJAX communication per-demand, keeping the footpring wonderfully small, but it feels dirty. I even use a global for main database connection (though it is a global object).

Any ideas? It would not be a problem at all if it were just one language, but trying to make everything work together is a bit of a headache.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T06:09:18+00:00Added an answer on May 26, 2026 at 6:09 am

    http://agiletoolkit.org/ implements exactly what you are looking for. It’s source-code is available on http://github.com/atk4/atk4 so you can learn from there.

    What I learned many things while creating Agile Toolkit.

    • Look at desktop systems. – Cocoa, Objective Windows and other object-oriented desktop systems have solved those problems long time ago. Create views, connect actions, define call-backs. This maps into HTML-templated views, JavaScript bindings and AJAX requests.

    • Runtime Object Tree. In Agile Toolkit, the first phase is initialization. During this phase objects are inserted into each-other. For instance you add Button into Form and add Form into Page. Then there is rendering phase which recursively produces HTML from everything. This makes much more sense that having components echo HTML.

    • jQuery UI widgets. Using those was a great way to solve many problems. Views in Agile Tolokit can talk with respective jQuery UI Widgets.

    • Objects you have mentioned are “Models” in Agile Toolkit. If you are looking for stand-alone version, you can rely on some ORM framework. I’ve made my own to have it tighter integrated with the Views.

    • Reconsider de-coupling. If you are developing all the system by yourself then coupling gives you lots of benefits. Especially if it’s object-oriented architecture and you inherit things. You would need some Java experience or Desktop development experience to get this thing right.

    Links:

    • What is Object Oriented Web Development
    • Object Oriented Programming in PHP
    • Execution steps in Agile Toolkit
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a jquery bug and I've been looking for hours now, I can't
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
this is what i have right now Drawing an RSS feed into the php,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.