Created
August 25, 2016 18:30
-
-
Save anonymous/ddc7e7a0c4e95b7483520df6cdfe2e25 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ContatcsCell extends Cell | |
{ | |
protected $_validCellOptions = []; | |
public function display() | |
{ | |
$this->loadModel('Contatcs'); | |
$contatcs = $this->Contatcs->newEntity(); | |
$this->set(compact('contatcs')); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?= $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 file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?= $this->cell('Contatcs') ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment