Latte mi nedovovoluje vlozit premenu medzi uvodzovky

xxar3s
Člen | 6
+
0
-

Caute do svojho PHP frameworku som si doplnil latte sablony nakolko mi pridu prehladnejsie ako templating engine co som pouzival doteraz.

Ale narazil som na problem. Neviem pridat prememnnu medzi uvodzovky. Neviem ci je to koli bezpecnosti ale nejakym sposobom tam tu cestu ku korenovemu foldru potrebujem dostat. Viac na obrázkoch:

Obrázok 1

Obrázok 2

//Edit: omylom som post vlozil do nepravnej kategorie. Ospravedlnujem sa. Som tu novy. Kludne to prelozte. Vdaka.

Editoval xxar3s (15. 7. 2018 13:09)

Martk
Člen | 661
+
0
-

Nevidím tam chybu, můžeš poslat celý latte soubor? Třeba přes pastebin

xxar3s
Člen | 6
+
0
-

Tu je celý súbor layoutu šablóny:

<!DOCTYPE HTML>
<html lang="sk-SK">

  <head>
    <title>{ifset $customTitle}{$customTitle}{else}{$title}{$name}{/ifset}</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta charset="utf-8">
    <link rel="shortcut icon" href="{$root}/favicon.ico" type="image/x-icon">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    {*<link rel="stylesheet" media="screen" href="{$root}/js/plugins/FancyBox/jquery.fancybox.css" type="text/css">*}
    <meta name="robots" content="index, follow">
    <meta name="description" content="{ifset $description}{$description}{/ifset}">
    <meta name="keywords" content="{ifset $description}{$description}{/ifset}">
    <link href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700" rel="stylesheet">
    <link rel="stylesheet" href="{$root}/assets/vendor/bootstrap/css/bootstrap.min.css">
    <!-- Libs and Plugins CSS -->
    <link rel="stylesheet" href='{$root}/assets/vendor/animsition/css/animsition.min.css'><!-- Animsition CSS (http://git.blivesta.com/animsition/) -->
    <link rel="stylesheet" href="{$root}/assets/vendor/fontawesome/css/fontawesome-all.min.css"><!-- Font Icons CSS (https://fontawesome.com) Free version! -->
    <link rel="stylesheet" href="{$root}/assets/vendor/lightgallery/css/lightgallery.min.css"><!-- lightGallery CSS (http://sachinchoolur.github.io/lightGallery) -->
    <link rel="stylesheet" href="{$root}/assets/vendor/owl-carousel/css/owl.carousel.min.css"><!-- Owl Carousel CSS (https://owlcarousel2.github.io/OwlCarousel2/) -->
    <link rel="stylesheet" href="{$root}/assets/vendor/owl-carousel/css/owl.theme.default.min.css"><!-- Owl Carousel CSS (https://owlcarousel2.github.io/OwlCarousel2/) -->
    <link rel="stylesheet" href="{$root}/assets/vendor/ytplayer/css/jquery.mb.YTPlayer.min.css"><!-- YTPlayer CSS (more info: https://github.com/pupunzi/jquery.mb.YTPlayer) -->
    <link rel="stylesheet" href="{$root}/assets/vendor/animate.min.css"><!-- Animate libs CSS (http://daneden.me/animate) -->
    <!-- Template master CSS -->
    <link rel="stylesheet" href="{$root}/assets/css/helper.css">
    <link rel="stylesheet" href="{$root}/assets/css/theme.css">
    <!-- Template dark style CSS -->
    <link rel="stylesheet" href="{$root}/assets/css/dark-style.css">

    <script>App = { root: '{$root}' };</script>
    <script src="{$root}/js/lib/jquery-1.8.3.min.js" type="text/javascript"></script>
    <script src="{$root}/js/app.js" type="text/javascript"></script>
    {$head}
  </head>

  <body id="body" class="animsition tt-boxed">
    {include 'header.latte'}
    <div id="body-content">
      {$content}
    </div>

    <!-- Core JS -->
    <script src="{$root}/assets/vendor/jquery/jquery.min.js"></script> <!-- jquery JS (https://jquery.com) -->
    <script src="{$root}/assets/vendor/bootstrap/js/bootstrap.min.js"></script> <!-- bootstrap JS (http://getbootstrap.com) -->

    <!-- Libs and Plugins JS -->
    <script src="{$root}/assets/vendor/animsition/js/animsition.min.js"></script> <!-- Animsition JS (http://git.blivesta.com/animsition/) -->
    <script src="{$root}/assets/vendor/jquery.easing.min.js"></script> <!-- Easing JS (http://gsgd.co.uk/sandbox/jquery/easing/) -->
    <script src="{$root}/assets/vendor/isotope.pkgd.min.js"></script> <!-- Isotope JS (http://isotope.metafizzy.co) -->
    <script src="{$root}/assets/vendor/imagesloaded.pkgd.min.js"></script> <!-- ImagesLoaded JS (https://github.com/desandro/imagesloaded) -->
    <script src="{$root}/assets/vendor/owl-carousel/js/owl.carousel.min.js"></script> <!-- Owl Carousel JS (https://owlcarousel2.github.io/OwlCarousel2/) -->
    <script src="{$root}/assets/vendor/jquery.mousewheel.min.js"></script> <!-- A jQuery plugin that adds cross browser mouse wheel support (https://github.com/jquery/jquery-mousewheel) -->
    <script src="{$root}/assets/vendor/ytplayer/js/jquery.mb.YTPlayer.min.js"></script> <!-- YTPlayer JS (more info: https://github.com/pupunzi/jquery.mb.YTPlayer) -->

    <script src="{$root}/assets/vendor/lightgallery/js/lightgallery.min.js"></script> <!-- lightGallery JS (http://sachinchoolur.github.io/lightGallery) -->
    <script src="{$root}/assets/vendor/lightgallery/js/lightgallery-all.min.js"></script> <!-- lightGallery Plugins JS (http://sachinchoolur.github.io/lightGallery) -->

    <!-- Theme master JS -->
    <script src="{$root}/assets/js/theme.js"></script>
  </body>
</html>
Martk
Člen | 661
+
+3
-
<script>App = { root: '{$root}' };</script>

na

<script>App = { root: {$root} };</script>
xxar3s
Člen | 6
+
0
-

Martk napsal(a):

<script>App = { root: '{$root}' };</script>

na

<script>App = { root: {$root} };</script>

Ďakujem idem to vyskúšať.

xxar3s
Člen | 6
+
0
-

Funguje vďaka

CZechBoY
Člen | 3608
+
+2
-

btw ve screenu si ukazal uplne jiny radek nez ti latte psalo v hlasce…