Вот пример из книги CakePHP по сохранению данных вашей модели:
function edit($id) {
//Has any form data been POSTed?
if(!empty($this->data)) {
//If the form data can be validated and saved...
if($this->Recipe->save($this->data)) {
//Set a session flash message and redirect.
$this->Session->setFlash("Recipe Saved!");
$this->redirect('/recipes');
}
}
//If no form data, find the recipe to be edited
//and hand it to the view.
$this->set('recipe', $this->Recipe->findById($id));
}
Если ваша модель была Рецептом, а ваш ввод был назван "title", тогда значение было бы в $ this-> data ['Recipe'] ['title'], если вы настроили свой вид следующим образом:
echo $this->Form->create('Recipe');
echo $this->Form->hidden('id');
echo $this->Form->input('title');
echo $this->Form->end('Save Recipe');
Итак, посмотрите здесь: http://book.cakephp.org/view/1031/Saving-Your-Data
И попробуйте сделать урок по блогам, он может помочь вам начать: http://book.cakephp.org/view/1528/Blog