1
0

Fix info-crisis link

This commit is contained in:
Anthony Gourd
2015-12-03 23:37:13 +01:00
parent 3d8fbc717f
commit 8c4d0aa579
4 changed files with 6 additions and 5 deletions
src
Controller
Model
Entity
Template

@ -40,7 +40,7 @@ class CrisisController extends AppController
public function view($id = null)
{
$crisi = $this->Crisis->get($id, [
'contain' => ['Users']
'contain' => ['Users', 'Infos']
]);
$this->set('crisi', $crisi);
$this->set('_serialize', ['crisi']);

@ -36,4 +36,8 @@ class Crisi extends Entity
'*' => true,
'id' => false,
];
protected function _setHashtags($hastags)
{
}
}

@ -13,7 +13,7 @@
<?php
echo $this->Form->input('title', ['label' => 'Titre']);
echo $this->Form->input('body', ['label' => 'Corps du texte']);
echo $this->Form->input('crisis_id', ['label' => 'ID crise']);
echo $this->Form->input('crisis_id', ['options' => $crisis, 'label' => 'ID crise']);
echo $this->Form->input('user_id', ['options' => $users, 'label' => 'ID utilisateur']);
echo $this->Form->input('type', ['label' => 'Type']);
?>

@ -112,9 +112,6 @@
<?= $this->Html->script("app.js") ?>
<!-- Page specific script (always load last) -->
<?= $this->fetch('script') ?>
<script>