title: Error : Unknown constructor
body: <p>I have created a custom object "Assure__c" and a custom apex class "insEnfant" like this :</p>
  
  <pre><code>&lt;apex:page standardController="Assure__c" extensions="insEnfant"  standardStylesheets="true"&gt;
      &lt;apex:sectionHeader title="Ajouter un assuré"
          subtitle="{!$User.FirstName}" help="/help/doc/user_ed.jsp?loc=help"&gt;&lt;/apex:sectionHeader&gt;
      &lt;apex:form &gt;
          &lt;apex:pageBlock title="Nouveau assuré" id="thePageBlock" mode="edit"&gt;
              &lt;apex:pageBlockButtons &gt;
                  &lt;apex:commandButton action="{!save}" value="Enregistrer"&gt;&lt;/apex:commandButton&gt;
                  &lt;apex:commandButton action="{!cancel}" value="   Annuler   "&gt;&lt;/apex:commandButton&gt;
              &lt;/apex:pageBlockButtons&gt;
  
              &lt;apex:pageBlockSection title="Liste des enfants" columns="1"
                  rendered="{!IF(Assure__c.Nombre_enfants__c &gt; 0, true, false)}"&gt;
  
  
              &lt;apex:pageBlockTable value="{!accts}" var="a" id="table"&gt;
                  &lt;apex:facet name="footer"&gt;
                      &lt;apex:commandLink value="Ajouter" action="{!addRow}" rerender="table,error"/&gt;
                  &lt;/apex:facet&gt;
  
                  &lt;apex:column headerValue="Nom"&gt;
                      &lt;apex:inputHidden value="{!Assure__c.Name}" id="theHiddenInput"/&gt;
                  &lt;/apex:column&gt;
                  &lt;apex:column headerValue="Nom"&gt;
                      &lt;apex:inputField value="{!a.Name}"/&gt;
                  &lt;/apex:column&gt;
                  &lt;apex:column headerValue="Prénom"&gt;
                      &lt;apex:inputField value="{!a.Prenom__c}"/&gt;
                  &lt;/apex:column&gt; 
                                  &lt;apex:column headerValue="Né le"&gt;
                      &lt;apex:inputField value="{!a.Date_de_naissance__c}"/&gt;
                  &lt;/apex:column&gt;   
                                  &lt;apex:column headerValue="Lieu de naissance"&gt;
                      &lt;apex:inputField value="{!a.Lieu_de_naissance__c}"/&gt;
                  &lt;/apex:column&gt;   
                                  &lt;apex:column headerValue="Situation"&gt;
                      &lt;apex:inputField value="{!a.Situation__c }"/&gt;
                  &lt;/apex:column&gt;                          
              &lt;/apex:pageBlockTable&gt;
  
              &lt;/apex:pageBlockSection&gt;
  
              &lt;/apex:pageblock&gt;
      &lt;/apex:form&gt;
  &lt;/apex:page&gt;
  
  
  public class insEnfant{
  
      public List&lt;Enfants__c&gt; accts {get; set;}
  
      public insEnfant(){
          accts = new List&lt;Enfants__c&gt;();
          accts.add(new Enfants__c());
      }
  
      public void addrow(){
          accts.add(new Enfants__c());
      }
  
      public PageReference save(){
          insert accts;
          PageReference home = new PageReference('/home/home.jsp');
          home.setRedirect(true);
          return home;
      }
  }
  </code></pre>
  
  <p>But when I tried to save it I obtain this error:</p>
  
  <pre><code>Error: Unknown constructor 'insEnfant.insEnfant(ApexPages.StandardController controller)'
  Create Apex method 'insEnfant.insEnfant(ApexPages.StandardController controller)'
  </code></pre>
  
  <p>As I am new to salesforce.com, can anyone please give me the code for this??</p>