Answers.Body: <p>Ok, I think I figured this bit out by using...</p>
  
  <p>$this->_contactId = CRM_Utils_Request::retrieve(...</p>
  
  <p>and making sure the calling url has cid={$contactId} included.  I'm getting the contactID in the php code, which will allow me to execute the queries and such I need to list out the details.</p>
  
  <p>Norm</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-11-06T21:27:08.343Z
Answers.LastActivityDate: 2018-11-06T21:27:08.343Z
Answers.UserDisplayName: Norm Dressler
Body: <p>I have created a new plugin structure using civix.  It has created the elements I wanted in the database.</p>
  
  <p>I have used dogregistry_civicrm_tabset to add a tab to my contacts pages.
  I used civix to create a page with a php file and a tpl file.</p>
  
  <p>The question I have is how do I transfer a value to the page php file?  I would like to send it contact ID so I can query the database for the entries for that contact but I'm not sure how to do that or whether it is stored already in a variable I can tap into?</p>
  
  <p>Thanks for your help.
  Norm</p>
  
Tags: <extension><developer><civix>
Title: Development on a plugin - How to transfer values
ThreadText: # Development on a plugin - How to transfer values
  
  (Asked by: username_0 on 2018-11-06)
  
  I have created a new plugin structure using civix. It has created the elements I wanted in the database.
  
  I have used dogregistry\_civicrm\_tabset to add a tab to my contacts pages.
  I used civix to create a page with a php file and a tpl file.
  
  The question I have is how do I transfer a value to the page php file? I would like to send it contact ID so I can query the database for the entries for that contact but I'm not sure how to do that or whether it is stored already in a variable I can tap into?
  
  Thanks for your help.
  username_0
  
  **Tags:** extension, developer, civix
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2018-11-06. Score: 2
  
  Ok, I think I figured this bit out by using...
  
  $this->\_contactId = CRM\_Utils\_Request::retrieve(...
  
  and making sure the calling url has cid={$contactId} included. I'm getting the contactID in the php code, which will allow me to execute the queries and such I need to list out the details.
  
  username_0
  
  
  ---
  
  