Okay,
Just interested in some advice and viewpoints here.
I'm looking at building up a form of schema for my database to pass into both my model and controller classes so I have a central representation of the database (required fields, foreignn keys, formatting, etc.).
This will be built up by reading a folder of one array per table, writing each to a class and building an array of each of these classes.
So, PHP's stateless nature means that either I run the code to generate this each time or I generate it once per user's session and put it into the $_SESSION store...or something else?
P.S. I assume this sort of schema thing has been done many times before but I'm not bothered about reinventing the wheel as this is all about me learning techniques not writing professional PHP packages. But yeah, if this has been done before I'd be interested to see other examples.
Thanks