thinkphp3.2.3 How to use the assign function in function.php in the Common file in the module
伊谢尔伦
伊谢尔伦 2017-05-24 11:33:38
0
3
589

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

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(3)
洪涛

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

左手右手慢动作

return

我想大声告诉你

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template