Fix info-crisis link
This commit is contained in:
src
@ -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>
|
||||
|
Reference in New Issue
Block a user