Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# /app/Controller/OrdersController.php
class OrdersController extends AppController {
public function add() {
if ($this->request->is(array('post', 'put')) {
if ($this->Order->saveAll($this->request->data, array('deep' => true)) {
$this->Session->setFlash('Ordine creato con successo');
//$this->redirect(array('action' => 'view', $this->Order->id);
$regions = $this->Order->Region->find('list');
* @todo Da fare
public function view($id = null) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.