Where should I keep my autoload class and router class?
As I understand a router class is not part of the design patterns so I should store it in a folder, say facade
, then where should I keep it?
also, what about the autoload class, is it not part of any design patterns? where should I keep it then?
where do all php frameworks keep these two classes? I try to look for them in Laravel, CakePHP, Zend Framework, etc, to get some ideas where they should be kept, but I can't find them in these frameworks. Any ideas?
router class,
class Router
{
...
}
autoload class,
class Autoloader
{
...
// spl_autoload_register(array($this, 'load'));
}