In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article is about the differences between CI and TP frameworks. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
What are the differences between CI and TP frameworks?
I have used two different frameworks (here are examples of TP3 and CI2), for example:
1. In terms of custom methods, there are many single-letter methods encapsulated on TP, such as U, I, etc., which are easy to call. For example: accept the parameter from get/post, TP is I ('get.id'), but CI is $this- > input- > get (' id')
2. It is also convenient for the model to call TP. An M or D is finished, and then M (tabel)-> chain operation. On CI, first load $this- > load- > model ('user_model'), and then use $this- > user_model- > get_value_by_pk ()
3, database chain operation, chain operation in TP is really handy and convenient. CI also supports chain operation, but still likes TP, so I won't give an example here.
4, load: when loading on TP, load all the class libraries at the beginning, and then you don't have to load one by one like CI, CI is to load on demand. There are examples in 2.
5. In use, TP is a domestic framework, many questions can basically be answered, and the Chinese community has done quite well. Although CI is a foreign framework, it is compact and convenient, and both can be mastered every minute.
6. If you want to talk about the obvious difference between the two, the landlord will go to the two official websites to take a look at the profile. If you look through the manuals of the two, you will understand a lot.
Thank you for reading! This is the end of the article on "what are the differences between CI and TP framework". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
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.