Answer the question
In order to leave comments, you need to log in
Yii where to take class configs?
Hello !
Wrote an Ldap class that allows you to search the database, etc.
I placed it in the components, that is, project/components/Ldap and I can use the class anywhere. I defined all the necessary configs (password, login, ip) as private variables of the Ldap class. Is it possible to make the configs be defined in project/configs/main.php and not in the class as private variables?
Sincerely ,
Almik
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question