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中文网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?
我想大声告诉你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