Hi,
Yesterday I'd asked a question about migrating from CodeIgniter to Phalcon. I'm still working through that and trying to write up my experiences :)
Anyway, in CodeIgniter you can have helpers, which allow you to define a function outside of the scope of a class.
I use these for some of the more complicated validation I do. For example, I have a check_int function which checks to see if something is an integer OR can be interpretted as one - say the string "15", which isn't an integer but, if parsed correctly, can be interpretted as one.
My question is, is this possible to use the Phalcon dependency injector to load these functions if required? I mean, I can always do a require_once or something like that, but was wondering if there was a proper way to do it