The open source forum system YouYaX 12th has been released ~ The main content of this update is 1. add CommonAction. php & nbsp; public controller file 2. when referencing others' published information, the referenced person will receive a message notification 3. as described in 1, move the repeated code from other controllers to the public controller. why cannot I add the function to the public file. php, but to create a public controller, it is because of common. the open source forum system YouYaX 12th has been released ~
The main content of this update is:
1. added the CommonAction. php public controller file.
2. when referencing others' posted information, the referenced person receives a message
3. as described in 1, move repeated code from other controllers to the public controller.
Why can't I add a function to the common. php public file and create a public controller,
Because common. php does not inherit the YouYaX class and cannot call the required function with $ this,
CommonAction. php the static method can call non-static methods in the YouYaX class, but cannot call non-static variables,
Details: http://www.youyax.com/forum/Content-index-id-4994.shtml
: Http://www.youyax.com
------ Solution --------------------
------ Solution --------------------
Okay, new guy. I don't know much about it ......