title: Is there a way to call modeless form in pages using cakephp3
body: <p>as what I read online it will only be available for like this 
  <a href="http://localhost/xxxxx/contact" rel="nofollow noreferrer">http://localhost/xxxxx/contact</a> then the form will display</p>
  
  <p>but I want it to display in many pages like contact us, or about us page</p>
  
  <p>when i call this pages I want the form appear in the content?</p>
  
  <p>Template </p>
  
  <p><strong>index.ctp</strong></p>
  
  <pre><code>&lt;?= $this-&gt;Form-&gt;create($contact); ?&gt;
  &lt;?= $this-&gt;Form-&gt;input('name'); ?&gt;
  &lt;?= $this-&gt;Form-&gt;input('email'); ?&gt;
  &lt;?= $this-&gt;Form-&gt;input('body'); ?&gt;
  &lt;?= $this-&gt;Form-&gt;button('Submit'); ?&gt;
  &lt;?= $this-&gt;Form-&gt;end(); ?&gt;
  </code></pre>
  
  <p><strong>ContactController.php</strong></p>
  
  <pre><code>&lt;?php
  // In a controller
  namespace App\Controller;
  
  use App\Controller\AppController;
  use App\Form\ContactForm;
  
  class ContactController extends AppController
  {
  public function index()
  {
  $contact = new ContactForm();
  if ($this-&gt;request-&gt;is('post')) {
  if ($contact-&gt;execute($this-&gt;request-&gt;data)) {
  $this-&gt;Flash-&gt;success('Your message has been sent; we\'ll get back to you soon!');
  $this-&gt;request-&gt;data['name'] = null;
  $this-&gt;request-&gt;data['email'] = null;
  $this-&gt;request-&gt;data['body'] = null;
  } else {
  $this-&gt;Flash-&gt;error('There was a problem submitting your form.');
  }
  }
  $this-&gt;set('contact', $contact);
  }
  }
  
  ?&gt;
  </code></pre>
  
  <p><strong>ContactForm.php</strong></p>
  
  <pre><code>&lt;?php
  namespace App\Form;
  
  use Cake\Form\Form;
  use Cake\Form\Schema;
  use Cake\Validation\Validator;
  use Cake\Mailer\Email;
  
  class ContactForm extends Form
  {
  
  protected function _buildSchema(Schema $schema)
  {
  return $schema-&gt;addField('name', 'string')
  -&gt;addField('email', ['type' =&gt; 'string'])
  -&gt;addField('body', ['type' =&gt; 'text']);
  }
  
  protected function _buildValidator(Validator $validator)
  {
  return $validator-&gt;add('name', 'length', [
  'rule' =&gt; ['minLength', 10],
  'message' =&gt; 'Please enter your name'
  ])-&gt;add('email', 'format', [
  'rule' =&gt; 'email',
  'message' =&gt; 'Please enter a valid email address',
  ])-&gt;add('body', 'length', [
  'rule' =&gt; ['minLength', 25],
  'message' =&gt; 'Please enter your message text',
  ]);
  }
  
  protected function _execute(array $data)
  {
  // Send an email.
      return true;
  }
  }
  </code></pre>