Skip to content

Instantly share code, notes, and snippets.

@SmetDenis
Last active August 29, 2015 14:27
Show Gist options
  • Save SmetDenis/678b4ab8a61fb74dd73e to your computer and use it in GitHub Desktop.
Save SmetDenis/678b4ab8a61fb74dd73e to your computer and use it in GitHub Desktop.
Just example...
<?php
if (file_exists( JPATH_ADMINISTRATOR . '/components/com_comprofiler/plugin.foundation.php' ) ) {
include_once( JPATH_ADMINISTRATOR . '/components/com_comprofiler/plugin.foundation.php' );
if (class_exists('CBuser')) {
$user = JFactory::getUser();
if ($user && $user->id) {
$cbUser = CBuser::getInstance($user->id);
$user = $cbUser->getUserData();
dump($cbUser, 0);
dump($user, 0);
dump($user->lastname, 0);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment