HI,
I'm in a CB action : After login Success.
Type PHP
return = return
I can not manage to get the CB fields as text to be use in php
I have troubleshooted with standard user value ( username) and get it, so 'login' is effective and I should have CB fields value as well
I have the following code , reference to the tutorial :
Code:
// 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');
I tried for getfield format csv and html as well but wihtout sucess
Any tips or something I'm missing ?