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
<!-- src\View\Cell\HotelquoteCell.php --> | |
<?php | |
namespace App\View\Cell; | |
use Cake\View\Cell; | |
class HotelquoteCell extends Cell | |
{ | |
protected $_validCellOptions = []; | |
public function display() | |
{ |
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
public function add() | |
{ | |
$user = $this->Users->newEntity(); | |
if ($this->request->is('post')) { | |
$user = $this->Users->patchEntity($user, $this->request->data); | |
if ($this->Users->save($user)) { | |
$this->Flash->success(__('The user has been saved.')); | |
return $this->redirect(['action' => 'index']); | |
} else { | |
$this->Flash->error(__('The user could not be saved. Please, try again.')); |
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
public function add() | |
{ | |
$user = $this->Users->newEntity(); | |
if ($this->request->is('post')) { | |
$user = $this->Users->patchEntity($user, $this->request->data); | |
if ($this->Users->save($user)) { | |
$this->Flash->success(__('The user has been saved.')); | |
return $this->redirect(['action' => 'index']); | |
} else { | |
$this->Flash->error(__('The user could not be saved. Please, try again.')); |