In my application I make use of an database with configuration table (key and value fields). Now I can autoload this by calling a model, library or even a helper if I want to. But is there an easier/nicer way to accomplish something like this (code) as somekind of autoload without calling a model or whatever, just the code?
Code:
get_db_table ( 'config' );
while ( records )
{
make_config_item ( 'key', 'value' );
}