Skip to content

Instantly share code, notes, and snippets.

Created August 25, 2016 18:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/ddc7e7a0c4e95b7483520df6cdfe2e25 to your computer and use it in GitHub Desktop.
Save anonymous/ddc7e7a0c4e95b7483520df6cdfe2e25 to your computer and use it in GitHub Desktop.
class ContatcsCell extends Cell
{
protected $_validCellOptions = [];
public function display()
{
$this->loadModel('Contatcs');
$contatcs = $this->Contatcs->newEntity();
$this->set(compact('contatcs'));
}
}
<?= $this->Form->create($contatcs) ?>
<fieldset>
<div class='input-list style-2 clearfix'>
<?php
echo $this->Form->input(('nome'), array('class' => 'form-control'));
echo $this->Form->input(('Email'),array('class' => 'form-control','empty' => 'entrada' ));
echo $this->Form->input(('mensagem'),array('type' => 'textarea','class' => 'form-control','empty' => 'entrada2' ));
?>
</div>
</fieldset>
<?= $this->Form->button(__('Enviar Mensagem'),
array('class' => 'btn btn-primary button-marques', 'title' => 'Enviar Mensagem')) ?>
<?= $this->Form->end() ?>
<?= $this->cell('Contatcs') ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment