Get Firstname in template

8 years 6 months ago #270294 by borja
Get Firstname in template was created by borja
How can i get the firstname in a template?

i did this but it´s not working:

<?php


include_once( JPATH_ADMINISTRATOR . '/components/com_comprofiler/plugin.foundation.php' );



$cbUser = CBuser::getMyInstance();
$name = $user->name;




//var_dump($user);
//var_dump($cbUser);

if ( !($cbUser->firstname=='') ) {

$name = $cbUser->firstname;
}
echo "Hola, <b>".$name."</b>" ;
?>

Please Log in to join the conversation.

8 years 6 months ago #270377 by borja
Replied by borja on topic Get Firstname in template
My doubt is still alive

Please Log in to join the conversation.

8 years 6 months ago #270697 by borja
Replied by borja on topic Get Firstname in template
Anyone can help me? best regards,

Borja

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.169 seconds

Facebook Twitter LinkedIn