Odd Di behavior

Hello.

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.

Regards

Why you even define two di ? :D



675

Just mistake. Everyone do mistakes :)