Answers.Body: <p>The civicrm_post hook performs stuff after a database update, and does not necessarily just echo stuff on a page.</p>
  
  <p>If you want to customize CiviCRM I strongly recommend you read the <a href="https://docs.civicrm.org/dev/en/latest/" rel="nofollow noreferrer">Developer Guide</a> carefully, and possibly check if you can follow a CiviCRM developer training somewhere.</p>
  
  <p>I assume you do not actually really want to echo "hello world" on any page, so perhaps it will help if you tell us what you really want to do?</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-09-12T14:54:37.963Z
Answers.Text: i know that civicrm_post hook performs after a database update, but i need to echo something using hooks_civicrm_post after creating individual contact. when trying to echo anything there is no result.
Answers.UserDisplayName: Hassan Abdallah
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-09-12T14:58:37.313Z
Answers.Text: You can not simply echo something, what you could do is use the status messages? So something like CRM_Core_Session::setStatus(ts('Hello World', 'I am awake', 'success');
Answers.UserDisplayName: ErikH - CiviCooP
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-09-12T20:14:49.967Z
Answers.Text: ok but if i need to add some code where should i put it?
Answers.UserDisplayName: Hassan Abdallah
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-09-13T06:55:09.243Z
Answers.Text: Depends at what moment you want this to happen, and I really do think you need to study CiviCRM customization and invest some time. I get the feeling from your questions you are going to do something without understanding the basics :-)
Answers.UserDisplayName: ErikH - CiviCooP
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-09-13T09:36:23.917Z
Answers.Text: thanks, so where should i start?
Answers.UserDisplayName: Hassan Abdallah
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-09-13T10:01:26.283Z
Answers.Text: Probably the Developer Guide as mentioned before: https://docs.civicrm.org/dev/en/latest/
Answers.UserDisplayName: ErikH - CiviCooP
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-09-12T14:45:22.833Z
Answers.LastActivityDate: 2017-09-12T14:45:22.833Z
Answers.UserDisplayName: ErikH - CiviCooP
Body: <p>I need to echo "hello world" in civicrm how to do this in any page in civicrm? i'm trying to do this using hooks_civicrm_post but there is no result.</p>
  
Tags: <drupal><webform-civicrm><php><hooks><civicrm-home>
Title: How to echo "Hello World" in civicrm?
ThreadText: # How to echo "Hello World" in civicrm?
  
  (Asked by: username_0 on 2017-09-12)
  
  I need to echo "hello world" in civicrm how to do this in any page in civicrm? i'm trying to do this using hooks\_civicrm\_post but there is no result.
  
  **Tags:** drupal, webform-civicrm, php, hooks, civicrm-home
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-09-12. Score: 2
  
  The civicrm\_post hook performs stuff after a database update, and does not necessarily just echo stuff on a page.
  
  If you want to customize CiviCRM I strongly recommend you read the [Developer Guide](https://docs.civicrm.org/dev/en/latest/) carefully, and possibly check if you can follow a CiviCRM developer training somewhere.
  
  I assume you do not actually really want to echo "hello world" on any page, so perhaps it will help if you tell us what you really want to do?
  
  > **Comments:**
  > **username_0**: i know that civicrm_post hook performs after a database update, but i need to echo something using hooks_civicrm_post after creating individual contact. when trying to echo anything there is no result.  
  > **username_1**: You can not simply echo something, what you could do is use the status messages? So something like CRM_Core_Session::setStatus(ts('Hello World', 'I am awake', 'success');  
  > **username_0**: ok but if i need to add some code where should i put it?  
  > **username_1**: Depends at what moment you want this to happen, and I really do think you need to study CiviCRM customization and invest some time. I get the feeling from your questions you are going to do something without understanding the basics :-)  
  > **username_0**: thanks, so where should i start?  
  > **username_1**: Probably the Developer Guide as mentioned before: https://docs.civicrm.org/dev/en/latest/  
  
  ---
  
  