Created
March 6, 2009 10:38
-
-
Save mariuswilms/74858 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
<?php | |
// app/controllers/movies_controller.php | |
class MoviesController extends AppController { | |
function edit($id = null) { | |
// ... | |
// $this->data = array( | |
// 'Movie' => array('title' => 'Vicky Cristina Barcelona'), | |
// 'Attachment' => array( | |
// 0 => array('file' => transferable item1, 'model' => 'Movie'), | |
// 1 => array('file' => transferable item2, 'model' => 'Movie'), | |
// ) | |
// ); | |
$this->Movie->saveAll($this->data, array('validate' => 'first')); | |
// ... | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment