search

Home  >  Q&A  >  body text

Parameter passing problem in load in MVC.

I really want to know how $classname is passed into the lode method@NWWUEM4M45E3KQ3N}2``0P.png

~指染流年~指染流年2272 days ago834

reply all(1)I'll reply

  • 天蓬老师

    天蓬老师2018-12-07 13:59:36

    spl_qutoload_register() can customize the automatic loading function. Its required parameter is your customized function. This function can also be an object method. If it is an object method, it needs to be placed in an array. The array's The first parameter is the class name, and the second parameter is the method in the class, and the class name you load will be automatically passed in as a parameter of the load method when you instantiate it

    reply
    0
  • ~指染流年

    Yes, I understand. Thank you so much.

    ~指染流年 · 2018-12-07 18:25:19
  • Cancelreply