Bug #31082 ยป crud.diff

Bernhard Fischer, 2011-10-18 20:18

View differences:

Resources/Private/Generator/Controller/CrudControllerTemplate.php.tmpl
59 59
	 */
60 60
	public function createAction({modelClassName} $new<k:uppercaseFirst>{modelName}</k:uppercaseFirst>) {
61 61
		$this->{modelName}Repository->add($new<k:uppercaseFirst>{modelName}</k:uppercaseFirst>);
62
		$this->flashMessageContainer->add('Created a new <k:inflect.humanizeCamelCase lowercase="true">{modelName}</k:inflect.humanizeCamelCase>.');
62
		$this->addFlashMessage('Created a new <k:inflect.humanizeCamelCase lowercase="true">{modelName}</k:inflect.humanizeCamelCase>.');
63 63
		$this->redirect('index');
64 64
	}
65 65

  
......
81 81
	 */
82 82
	public function updateAction({modelClassName} ${modelName}) {
83 83
		$this->{modelName}Repository->update(${modelName});
84
		$this->flashMessageContainer->add('Updated the <k:inflect.humanizeCamelCase lowercase="true">{modelName}</k:inflect.humanizeCamelCase>.');
84
		$this->addFlashMessage('Updated the <k:inflect.humanizeCamelCase lowercase="true">{modelName}</k:inflect.humanizeCamelCase>.');
85 85
		$this->redirect('index');
86 86
	}
87 87

  
......
93 93
	 */
94 94
	public function deleteAction({modelClassName} ${modelName}) {
95 95
		$this->{modelName}Repository->remove(${modelName});
96
		$this->flashMessageContainer->add('Deleted a <k:inflect.humanizeCamelCase lowercase="true">{modelName}</k:inflect.humanizeCamelCase>.');
96
		$this->addFlashMessage('Deleted a <k:inflect.humanizeCamelCase lowercase="true">{modelName}</k:inflect.humanizeCamelCase>.');
97 97
		$this->redirect('index');
98 98
	}
99 99

  
    (1-1/1)