Phalcon Skeleton

hey guys ive out together a skeleton that i always have good use on every new project of mine. Hope you guys find it helpful and im open for any opinions.

https://github.com/HudsonNicoletti/phalcon-skeleton

https://github.com/HudsonNicoletti/phalcon-skeleton/blob/master/apps/Website/controllers/ControllerBase.php#L21

Instantiating a Controller and using it's methods outside the dispatch loop is an anti-pattern... It does not cause any troubles atm, but later on, you might run into problems, because the controller was not instantiated by the dispatcher.

I would create a Component or a Plugin to handle the language settings, and expose that through the API controller.