[solved] $gCms or cmsms()

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
kishman155
Translator
Translator
Posts: 169
Joined: Sat Mar 12, 2005 12:30 pm
Location: Vienna

[solved] $gCms or cmsms()

Post 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.
Last edited by kishman155 on Wed Oct 23, 2013 9:01 pm, edited 1 time in total.
chandra

Re: $gCms or cmsms()

Post by chandra »

kishman155 wrote: one is save for the future

cmsms()->GetDb()
.
;)
kishman155
Translator
Translator
Posts: 169
Joined: Sat Mar 12, 2005 12:30 pm
Location: Vienna

Re: $gCms or cmsms()

Post by kishman155 »

Thanks for info
staartmees
Power Poster
Power Poster
Posts: 1049
Joined: Wed Mar 19, 2008 4:54 pm

Re: $gCms or cmsms()

Post by staartmees »

Please add [solved] to the title
totophe
Forum Members
Forum Members
Posts: 63
Joined: Wed Feb 21, 2007 9:30 am

Re: [solved] $gCms or cmsms()

Post by totophe »

Isn't it better to use cms_utils::get_db() ?
Post Reply

Return to “Developers Discussion”