Hi,
I don't use gii at all, so my answer is just a 'best guess'. I believe
that the gii part of the ymds uses app->db to be compatible with other
gii parts, since gii was designed to work with CActiveRecord, which by
default is the 'db' component.
The core classes of ymds are independent of the component they are
defined in, so if you don't want to use the 'db' component for
something else (eg for a relational db connection), you're free to
define it as 'db' instead of as 'mongodb'.
I didn't try so far using mongodb on the 'db' component, so you might
need to issue an
[classname]::model()->setMongoDBComponent(Yii::app()->db) for each
class to register the different component.
Or, I'd prefer just to set both the 'db' and 'mongodb' components with
the correct configuration. Unused components won't be instantiated
anyway.
Your connection string seems ok to me.
--
Nagy Attila Gabor