echo not working in JomSocial plugin -


i making jomsocial plugin name of user when echo name not displaying name. here code

<?php defined('_jexec') or die('restricted access'); require_once jpath_root .'/components/com_community/libraries/core.php';  class plgcommunityname extends jplugin{      function getuserdetails(){         $cuser = cfactory::getuser();         $name = $cuser->username;         echo $name;     } }  ?> 

how can ?

try return $name; instead of echo $name;


Comments

Popular posts from this blog

java - Unable to make sub reports with Jasper -

scala - play framework: Modules were resolved with conflicting cross-version suffixes -

Passing Variables from AngelScript to C++ -