Created
August 25, 2016 16:48
-
-
Save anonymous/202a4503e603cc0d2192d37f8bcd7cd1 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
<?= $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> | |
<br/> | |
<?= $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
<?php | |
class ContactsCell extends Cell | |
{ | |
protected $_validCellOptions = []; | |
public function display() | |
{ | |
<?= $this->cell('Contact::add') ?> | |
} | |
} |
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
<? = $cell = $this->cell('Contatcts'); ?> |
<?= $this->Form->create($contact, ['controller'=>'Users', 'action'=>'add']) ?>
<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>
<br/>
<?= $this->Form->button(__('Enviar Mensagem'),
array('class' => 'btn btn-primary button-marques', 'title' => 'Enviar Mensagem')) ?>
<?= $this->Form->end() ?>
<?= $cell = $this->cell('Contacts'); ?>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you've misspelled
contacts
in both your home.ctp and add.ctp (form->create) and your Cell display method should act exactly like a Controller action, so ..