Hi,
I use CB as user manager for my site.
Now I need to have access to user data from some other components that I have develop or customized.
What I need to include to my component to have access to cb user data ?
To have access to joomla user manager I have to include the below code
Code:
<?php
/** framework joomla check login user */
define( '_JEXEC', 1 );
define( '_VALID_MOS', 1 );
define('JPATH_BASE', dirname(__FILE__));
define( 'DS', DIRECTORY_SEPARATOR );
require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );
/* Create the Application */
$mainframe =& JFactory::getApplication('site');
$mainframe->initialise();
/* End joomla user framework */
?>
Then I can user commands like "JFactory::getUser()->id" to get data from user.
Is there any method to access CB data from my component?
Thanks.