In osCommerce 2.3.4 (and in fact ancient versions of Phoenix)
Code: Select all
└───admin
│ specials.php
│
└───includes
└───languages
└───english
specials.php
Yet in modern Phoenix
Code: Select all
└───admin
│ specials.php
│
└───includes
├───actions
│ └───specials
│ │ delete_confirm.php
│ │ insert.php
│ │ new.php
│ │ set_flag.php
│ │ update.php
│ │
│ ├───infoboxes
│ │ default.php
│ │ delete.php
│ │
│ └───views
│ default.php
│ edit.php
│ new.php
│
└───languages
└───english
specials.php
Yet, the reality is the exact opposite.
Think of the old `specials.php` like a giant junk drawer that holds everything - pens, scissors, batteries, and random receipts all mixed together. To find or fix one thing, you have to dig through the entire mess, and if you accidentally move something, you might break five other things.
The new Phoenix structure is like having labeled drawers: one drawer just for pens, one just for scissors, one just for batteries. Each tiny file does only one specific job (adding, editing, deleting etc), so when you need to change how deletions work, you open just the 10-line delete_confirm.php file and nothing else gets touched.
Yes, there are more files, but each one is short, simple, and obvious-perfect for a beginner because you never have to face a 500-line wall of code; you just open the tiny file that does exactly what you need.
In simple terms
What you see in the Phoenix version is ALL in the osCommerce version as well - it's just that the osCommerce version has it all in ONE massive file. The Phoenix structure isn't adding complexity - it's unpacking existing complexity into organized, manageable pieces. The old way just hides the complexity inside a single 500-line monster file. Phoenix reveals the complexity as separate mini files that are easy to understand and safe to modify.
Bottom line
More files = less confusion. It's the difference between a messy pile of clothes and a well-organized dresser. Same amount of stuff, just actually findable and usable.