In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
How do I see where the phpcms controller is? This problem may be often seen in our daily study or work. I hope you can gain a lot from this question. The following is the reference content that the editor brings to you, let's take a look at it!
Where is the phpcms controller?
Speaking of which, if you are familiar with php development, it is actually very simple, just like rewriting normal php class methods. Next, I will talk about your questions that I understand according to the characteristics of phpcm, and see if I can help you.
Phpcms is a MVC architecture model based on functional modules. In the system root directory phpcms there is a modules directory, this directory stores all the modules of phpcms, such as our commonly used content module (content), membership module (member), background module (admin) and so on.
So, if you want to modify a functional method under that module, go to the corresponding directory to find the controller (controller), and then do the corresponding secondary development.
I take the common article content page method as an example, for example, I want to extend this method, first of all, the content module, then go to the content directory, then according to the routing rules (m=content&c=index&a=show represents the show method in the index file of the content module), find the show method in the corresponding controller file name index, and then write what you want to develop here. You can also redefine the name of the method to be executed by modifying the a parameter value in the routing rule.
Thank you for reading! After reading the above, do you have a general idea of how to see where the phpcms controller is? I hope the content of the article will be helpful to all of you. If you want to know more about the relevant articles, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.