<?php return array( "nif" =>"12", "nombre" =>"88" ); ?>
<?php$user = & JFactory::getUser();$login=$user->username;print "-> $login es el username ";print "-> $user es el array "; /*return array('nif' =>$user->name);*/ return array('nif' =>"seden"); ?>
$user->get("id")
i need insert a condition in ccv5 form that show only records of table that allow to one user
I did it statically with
But my purpose is do it dinamically with user id of joomla, but I don't know how can i get it from enviroment of joomla
regards
Please see this FAQ
Bob
If you'd like to buy me a coffee or two, thank you very much
but I have tried with this in order to debug it
the results are:
no value for $login
$user value = JUser
and list works because "seden· is constant, so can you help me, what am I missing?
is working, my failure was that I have to register as user to get it works, because from backend there is not registered users
You need to use this to get the user's id:
Regards,
Max
ChronoForms7 Video Tutorials