Remember the previous mention of the solution of the TP operation method, now 3.1 version of a simpler solution, only need to configure the next Action_suffix configuration parameters, obviously more than the way to expand the behavior is much simpler, such as:
' Action_suffix ' => ' http://www.aliyun.com/zixun/aggregation/16339.html ' >action '
That is, support to the operation method to define the suffix, if the above parameters are configured, we actually call the operation of the operation name plus the action suffix, assuming that we currently visit the URL address is:
Http://localhost/index.php/User/list
Access is the user module list operation, in the absence of configuration action_suffix, because the list method is a PHP built-in method will have conflicts, now configured, the actual access should be the Useraction controller Listaction method:
Class Useraction extends action{public Function listaction () {//action method specific Code}}
Of course, you can configure any string as the operation method suffix, action_suffix configuration parameters do not affect the use of the current operation name, the A and R method calls also have no effect.