when the yii framework did the function of increasing the number of articles read today, it was found that the number of readings increased by 2
each visit.later found that whenever I render the template and layout in the controller, the controller is executed twice.
later, I found that as long as I set layout to false or there is no html code in layout, the controller will execute once, there is html code in a single layout, and the controller will execute twice immediately. Once again,
found that the amount of reading on endpage has increased by 1. Once under endpage, the number of readings will increase by 2
Please ask, has anyone encountered this problem and how to solve it? thank you