Page 1 of 1

[solved] $gCms or cmsms()

Posted: Wed Oct 23, 2013 3:45 am
by kishman155
which one of them is save for the future to use.

in the past years we have got diverent things to use to get the db.

which one is save for the future?

$gCms->GetDb()

cmsms()->GetDb()

the most of my modules use a orm handler to conect to db and make default
sql statements like select, update, delete, but some are classic and use it in every action.

please let me know which will be the final version for the future.

Re: $gCms or cmsms()

Posted: Wed Oct 23, 2013 5:56 am
by chandra
kishman155 wrote: one is save for the future

cmsms()->GetDb()
.
;)

Re: $gCms or cmsms()

Posted: Wed Oct 23, 2013 6:16 am
by kishman155
Thanks for info

Re: $gCms or cmsms()

Posted: Wed Oct 23, 2013 8:05 am
by staartmees
Please add [solved] to the title

Re: [solved] $gCms or cmsms()

Posted: Tue Dec 10, 2013 5:05 pm
by totophe
Isn't it better to use cms_utils::get_db() ?