Model or Class not from the database

I want to create a class that is not mirroring a database table. It uses data from an array in a config file. The other Models are using MySQL but just this one class I don’t want to connect to a table.

This would be a pretty standard class, with methods, variables and all.

Where should I put this class? Do I need to include() the file anywhere I use it or can it be autoloaded like the Models are?

I’d suggest that you put it under protected/components



If it handles business logic for your application, I would put it in the Models directory.

There is no requirement that models access the database.