A

Admin • 831K Points
Coach

Q. What is recommended usage of DB class?

  • (A) Instantiate directly
  • (B) Use static get_connection()
  • (C) Use global variable
  • (D) Use dependency injection
  • Correct Answer - Option(B)
  • Views: 1
  • Filed under category Trishul API
  • Hashtags:

Explanation by: Admin
Docs recommend using static method.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.