Get the App
SLTechnology News&Howtos  ›  Development  › 

What are the differences between CI and TP frameworks

Shulou Source: shulou.com Published: 2022-06-02 16:53:54 09月30日 Update

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!

Tags: Frame chain good content more articles different no convenient practical compact handy obvious no Chinese community between things examples minutes parameters Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Apple vpn Microsoft Shulou Tech Info