title: How to pass Joomla parameters to an iframe (wrapper) page?
body: <p>I try to fetch my users information using the getUser() function with a php script located in a iframe (wrapper) of Joomla. It seems there is problem passing parameters to iframe code. The only way I can catch user informations is to insert the code into a basic article (which is not an iframe).</p>
  
  <p>The var_dump($user); output shows :</p>
  
  <pre><code>object(JUser)#17 (23) { ["isRoot":protected]=&gt; NULL ["id"]=&gt; int(0) ["name"]=&gt; NULL ["username"]=&gt; NULL ["email"]=&gt; NULL ["password"]=&gt; NULL ["password_clear"]=&gt; string(0) "" ["usertype"]=&gt; NULL ["block"]=&gt; NULL ["sendEmail"]=&gt; int(0) ["registerDate"]=&gt; NULL ["lastvisitDate"]=&gt; NULL ["activation"]=&gt; NULL ["params"]=&gt; NULL ["groups"]=&gt; array(0) { } ["guest"]=&gt; int(1) ["_params":protected]=&gt; object(JRegistry)#18 (1) { ["data":protected]=&gt; object(stdClass)#19 (0) { } } ["_authGroups":protected]=&gt; NULL ["_authLevels":protected]=&gt; NULL ["_authActions":protected]=&gt; NULL ["_errorMsg":protected]=&gt; NULL ["_errors":protected]=&gt; array(0) { } ["aid"]=&gt; int(0) }
  </code></pre>
  
  <p>Some idea of what is going wrong ?
  Thank you,
  Florent</p>
  
  <pre><code>&lt;?php
  
  define( '_JEXEC', 1 );
  define('JPATH_BASE', dirname(__FILE__) );
  define( 'DS', DIRECTORY_SEPARATOR );
  
  require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
  require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );
  
  $user = JFactory::getUser();
  
  echo "&lt;p&gt;Your name is {$user-&gt;name}, your email is {$user-&gt;email}, and your username is $user-&gt;username}&lt;/p&gt;";
  echo "&lt;p&gt;Your usertype is {$user-&gt;usertype} which has a group id of {$user-&gt;gid}.&lt;/p&gt;";
  //var_dump($user);
  ?&gt;  
  </code></pre>