|
@@ -51,9 +51,9 @@ $allAssociations = array_merge(
|
|
|
/**
|
|
/**
|
|
|
* View method
|
|
* View method
|
|
|
*
|
|
*
|
|
|
- * @throws NotFoundException
|
|
|
|
|
* @param string $id
|
|
* @param string $id
|
|
|
* @return void
|
|
* @return void
|
|
|
|
|
+ * @throws NotFoundException
|
|
|
*/
|
|
*/
|
|
|
public function view($id = null) {
|
|
public function view($id = null) {
|
|
|
$<?= $singularName?> = $this-><?= $currentModelName ?>->get($id, [
|
|
$<?= $singularName?> = $this-><?= $currentModelName ?>->get($id, [
|
|
@@ -94,9 +94,9 @@ $allAssociations = array_merge(
|
|
|
/**
|
|
/**
|
|
|
* Edit method
|
|
* Edit method
|
|
|
*
|
|
*
|
|
|
- * @throws NotFoundException
|
|
|
|
|
* @param string $id
|
|
* @param string $id
|
|
|
* @return void
|
|
* @return void
|
|
|
|
|
+ * @throws NotFoundException
|
|
|
*/
|
|
*/
|
|
|
public function edit($id = null) {
|
|
public function edit($id = null) {
|
|
|
$<?= $singularName ?> = $this-><?= $currentModelName ?>->get($id, [
|
|
$<?= $singularName ?> = $this-><?= $currentModelName ?>->get($id, [
|
|
@@ -126,9 +126,9 @@ $allAssociations = array_merge(
|
|
|
/**
|
|
/**
|
|
|
* Delete method
|
|
* Delete method
|
|
|
*
|
|
*
|
|
|
- * @throws NotFoundException
|
|
|
|
|
* @param string $id
|
|
* @param string $id
|
|
|
* @return void
|
|
* @return void
|
|
|
|
|
+ * @throws NotFoundException
|
|
|
*/
|
|
*/
|
|
|
public function delete($id = null) {
|
|
public function delete($id = null) {
|
|
|
$<?= $singularName ?> = $this-><?= $currentModelName ?>->get($id);
|
|
$<?= $singularName ?> = $this-><?= $currentModelName ?>->get($id);
|