npacker / nFramework

A simple MVC framework in PHP.
1 stars 0 forks source link

Configuration as registry/arrays instead of constants #5

Closed npacker closed 9 years ago

npacker commented 10 years ago

Settings such as database information are currently stored as defined constants. This taks will implement associative arrays (at minimum) or more preferably a registry. Content types will be defined here most likely. At this early stage there is a controller for each content type. Later on, it is likely that there will be a singular "content" or "entity" controller that fetches particular types of data based on the url parameter for type. This will allow controller names to be moved from configuration and into the database, which is the best way to handle aliases and mapping.

npacker commented 9 years ago

Leaving this as a global array for now. Perhaps more flexible than defines.