Connecting Joomla component to external database - Joomla! Forum - community, help and support


hey there, wanting , have been attempting no luck connect 1 component in website database of website.

for example, have website 1 (main site) , website 2 (mobile website) , using rsdirectory joomla display property listings, avoid having publish duplicate listing on both website 1 , website 2.

can please tell me how override

code: select all

$db = jfactory::getdbo();
single component?

ive tried replacing jfactory::getdbo();'s within admin / site component

code: select all

$option = array(); //prevent problems
 
$option['driver']   = 'mysql';            // database driver name
$option['host']     = 'localhost';    // database host name
$option['user']     = 'db_user';       // user database authentication
$option['password'] = 'dbpass';   // password database authentication
$option['database'] = 'db';      // database name
$option['prefix']   = 'abc_';             // database prefix (may empty)
 
$db = jdatabasedriver::getinstance( $option );


and have had no luck.. important figure out how because id implement single sign on / user account between 8 websites / sub domains.

would appreciate can get.

the jms multisite extension might want. has single sign on function allows management of many sites @ once. search in extension directory.





Comments

Popular posts from this blog

Falang and too many redirects - Joomla! Forum - community, help and support

Infinite loop detected in JErrorInfinite loop detected in JError - Joomla! Forum - community, help and support

logged out from joomla! - Joomla! Forum - community, help and support