// Get a handle to the Joomla application object for debug
$application = JFactory::getApplication();
//
Global $_CB_framework;
//
$cbUser =& CBuser::getInstance( (int) $_CB_framework->myId() );
if ( ! $cbUser ) {
$cbUser =& CBuser::getInstance( null );
}
$user =& $cbUser->getUserData();
// checking different ways to retrieve values :
$myusername = $cbUser->getField( 'cb_website','text' );
$usernameADV = $cbUser->getField( 'cb_website', 'no value retrieved ', 'text', 'none', 'list' );
$application->enqueueMessage(JText::_('usernameADV :' . $usernameADV .'O'), 'error');
$application->enqueueMessage(JText::_('myusername : ' . $myusername .'X' ), 'error');
//////******** DEBUG *******************////
//Retrieve joomla standard field to validate we are connected
$stduser=JFactory::getUser()->get('name');
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.