CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Add Contact in civiCRM
Pages: [1]

Author Topic: Add Contact in civiCRM  (Read 3074 times)

figover

  • Guest
Add Contact in civiCRM
October 29, 2008, 05:37:06 am
Hello
       I am using civiCRM 2.0 and Drupal 5.7.

I want to ask that when i click on submit button in add contact page.....which function is called?.....and this function lies in which directory of civiCRM system?

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Add Contact in civiCRM
October 29, 2008, 06:05:08 am
Hi,

Not sure what is your question, but if you try programming contact adding, I suggest you to use the APIs, they are various examples under the test directory.

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

figover

  • Guest
Re: Add Contact in civiCRM
October 29, 2008, 08:13:34 pm
My Question is this:
when i click on submit button of Add Contact Page, which function is called?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Add Contact in civiCRM
October 29, 2008, 09:11:39 pm

CRM/Contact/Form/Edit.php, function postProcess( )

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

figover

  • Guest
Re: Add Contact in civiCRM
October 29, 2008, 09:29:38 pm
Thanks for Reply
What is the meaning of this line in Function postProcess(

$params = $this->controller->exportValues( $this->_name );

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Add Contact in civiCRM
October 29, 2008, 09:39:39 pm

you might want to work with a developer familiar with php5/OOP. will make it easier on you and us

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Add Contact in civiCRM
October 29, 2008, 09:50:09 pm
Hi,

That's to get the values posted in the form.

The architecture and MVC model is described in the doc, you might start with this that gives a good overview (start by the oldest articles)
http://civicrm.org/architecture

Good luck
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

figover

  • Guest
Re: Add Contact in civiCRM
October 29, 2008, 09:52:34 pm
You will suggest me which forum to understand OOP. I have done basic work of OOP.

figover

  • Guest
Re: Add Contact in civiCRM
October 29, 2008, 09:56:31 pm
Thank you for this link.

figover

  • Guest
Re: Add Contact in civiCRM
October 29, 2008, 10:08:32 pm
Hello,

I am searching this link http://civicrm.org/architecture ...but i have not found any doc file....can you tell me location of doc file from where i can see MVC Model?

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Add Contact in civiCRM
October 30, 2008, 01:33:07 am
http://civicrm.org/node/98

But that's probably going to be a long road and you'll have to spend a fair amount of time trying and running debug messages.

As for learning OOP, you're not at the right place, find websites that are about developing in general, not about a specific product.

Good luck
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

figover

  • Guest
Re: Add Contact in civiCRM
October 30, 2008, 02:28:28 am
Thank You xavier

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Add Contact in civiCRM

This forum was archived on 2017-11-26.