$contact = new Contact(); $contact->setAttributes(array( 'firstName' => 'John', 'lastName' => 'Smith', 'email' => 'johnsmith@example.com' )); $contact->save();
$lead = new Lead($leadId); $lead->setAttributes(array( 'firstName' => 'Jane', 'lastName' => 'Doe', 'email' => 'janedoe@example.com' )); $lead->save();
$contacts = Contact::model()->findAllByAttributes(array( 'city' => 'New York' )); foreach ($contacts as $contact) { echo $contact->firstName . ' ' . $contact->lastName . 'This code queries for all contact records with a "city" attribute set to "New York" and prints out their first and last names. Overall, Zurmo makes use of various PHP libraries and frameworks to provide a powerful and customizable CRM software solution.
'; }