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.
[solved] $gCms or cmsms()
-
- Translator
- Posts: 169
- Joined: Sat Mar 12, 2005 12:30 pm
- Location: Vienna
[solved] $gCms or cmsms()
Last edited by kishman155 on Wed Oct 23, 2013 9:01 pm, edited 1 time in total.
-
- Translator
- Posts: 169
- Joined: Sat Mar 12, 2005 12:30 pm
- Location: Vienna
Re: $gCms or cmsms()
Thanks for info
-
- Power Poster
- Posts: 1049
- Joined: Wed Mar 19, 2008 4:54 pm
Re: $gCms or cmsms()
Please add [solved] to the title
Re: [solved] $gCms or cmsms()
Isn't it better to use cms_utils::get_db() ?