Odd Di behavior


I have set my DI on two different files - in index.php $di = new FactoryDefault();

and in my file with DI definitions named di.php $di = new FactoryDefault();

After this my application was broken. I have unable to access my specific settings config, db settings e.t.c.

When i comment the definition in index.php all works good.

I'm not sure that this is Phalcon problem, but this can be useful for someone. If someone have similar experianse let share it, please.


Why you even define two di ? :D


Just mistake. Everyone do mistakes :)