search

Home  >  Q&A  >  body text

thinkphp3.2.3 How to use the assign function in function.php in the Common file in the module

I am new to TP, because the function.php in the Common file in the module is a public function file, not a class file. What should I do if I want to use the assign function in the framework directly in the function

伊谢尔伦伊谢尔伦2863 days ago632

reply all(3)I'll reply

  • PHP中文网

    PHP中文网2017-05-24 11:35:38

    What you are doing is totally unreasonable. You call the allocation variable in the method. Why not allocate it in the public categories?

    reply
    0
  • ringa_lee

    ringa_lee2017-05-24 11:35:38

    return

    reply
    0
  • 我想大声告诉你

    我想大声告诉你2017-05-24 11:35:38

    Create a new class file and create a method in it to allocate variables, then create a new class in function.php, and then call the method in it to allocate variables

    reply
    0
  • Cancelreply