We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

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



1.3k

Just mistake. Everyone do mistakes :)