Title, I am a little confused, such as a function of intercepting string length, should I write in common.php or in the parent class (Public inheritance Class)?
Also, what is the difference between these two implementations for performance?
Please talk about your own experience.
Reply content:
Title, I am a little confused, such as a function of intercepting string length, should I write in common.php or in the parent class (Public inheritance Class)?
Also, what is the difference between these two implementations for performance?
Please talk about your own experience.
Most of the places are written in common.php Ah, you write in config.php can also, just thinkphp the conventional, if only a single action to write in action
Basic functions Drop common.php directly.
For example, we will enclose the text message in a new class.
In terms of performance, this is not worth considering. Focus on business logic.