You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Do Internal API(Direct SQL) calls will work in CP3?

Accepted answer
edited Jun 8, 2022 12:01PM in General Technical Discussions 6 comments



We are in the process of migrating CP2 to CP3 and while analyzing the Custom widgets/Models, we found that some of the files use Direct SQL API like the below code:

I heard from someone that the above will still work in CP3 and there is no need to convert to Connect PHP format....anybody confirm this please


Code Snippet

             $sql_form_id = "select cf_id, visible, required from ps_cf2dynamic_form 
                              where form_id = (select form_id from ps_prodcat2dynamic_form 

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!