Commit f4b37583 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Début d'intégration de VueJS

parent b8995e98
Loading
Loading
Loading
Loading
+16 −4
Changes for code/test3.php: 16 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -9,9 +9,21 @@
 */


/** @var \Doctrine\ORM\EntityManager $em */
$em = $container->get(\Application\Constants::BDD);
?>
<div id="app-2">
  <span v-bind:title="message">
    Passez votre souris sur moi pendant quelques secondes
    pour voir mon titre lié dynamiquement !
  </span>
</div>

$e = $em->find(\Mission\Entity\Db\TypeMission::class, 1);
<script type="application/javascript">

var_dump($e);
 No newline at end of file
    var app2 = new Vue({
        el: '#app-2',
        data: {
            message: 'Vous avez affiché cette page le ' + new Date().toLocaleString()
        }
    })

</script>
 No newline at end of file
+3
Changes for module/Application/view/layout/layout.phtml: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -12,6 +12,8 @@ $pages = $navigationHelper->getContainer();

$version = $this->appInfos()->getConfig()->get('version');

$inDev = (getenv('APPLICATION_ENV') ?: 'dev') == 'dev';

echo $this->doctype();
?>

@@ -63,6 +65,7 @@ echo $this->doctype();
    <!-- Scripts globaux -->
    <script type="text/javascript" src="<?= $this->basePath('/vendor/jquery-3.6.0.min.js?v=' . $version) ?>"></script>
    <script type="text/javascript" src="<?= $this->basePath('/vendor/jquery-ui-1.12.1/jquery-ui.min.js?v=' . $version) ?>"></script>
    <script type="text/javascript" src="<?= $this->basePath('/vendor/' . ($inDev ? 'vue.js' : 'vue.min.js')) ?>"></script>
</head>

<body class="<?= getenv('APPLICATION_ENV') ?: 'dev' ?> p-0" data-base-url="<?= $this->url('home') ?>">
+11841

File added.

Preview size limit exceeded, changes collapsed.

+11

File added.

Preview size limit exceeded, changes collapsed.