Welcome to WebmasterWorld Guest from 220.127.116.11
The design is one that would convert to an OO paradigm very easily, even though I haven't used explicit OO features of PHP so far. What worries me is performance issues. The page consists of a framework that makes a DB connection, authenticates users, displays a header, footer, and navbar, and calls one of its components to fill in the 'main' content area. The navbar can be added to by each component by defining a function of a certain name in a particular file within the component's directory hierarchy. These are pretty light-weight functions, and therefore should take little time to parse and execute. This is good, because it means that for any given page view, I only load an execute the bulk of a component's code if it's actually being used. If I make the components into objects, and the navbar function into a method, is there any way to keep from loading the entire bulk of every component on every page view?