PHP Classes

File: examples/views/relative/relative.blade.php

Recommend this page to a friend!
  Classes of Jorge Castro  >  BladeOne  >  examples/views/relative/relative.blade.php  >  Download  
File: examples/views/relative/relative.blade.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: BladeOne
Standalone template engine that compiles into PHP
Author: By
Last change: * 3.47.3 see changelog.
Date: 1 year ago
Size: 1,085 bytes


Class file image Download
baseurl: <b>{!! $baseurl !!}</b><br>
url: <b>{!! $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'] !!}</b><br>
relative url: <b>@@relative('img/cleaning.gif')</b><br>
relative url: <b>@relative('img/cleaning.gif')</b><br>
<img src="@relative('img/cleaning.gif')"><br>
asset url: <b>@@asset('img/cleaning.gif')</b><br>
asset url: <b>@asset('img/cleaning.gif')</b><br>

<img src="@asset('img/cleaning.gif')">
using asset dictionary <span id="loaded" style="color:red">...</span> <br>
asset url: <b>@@asset('js/jquery.min.js')</b><br>
asset url: <b>@asset('js/jquery.min.js')</b><br>

asset url: <b>@@asset('js/popper.min.js')</b><br>
asset url: <b>@asset('js/popper.min.js')</b><br>

<script src="@asset('js/jquery.min.js')"></script>
<script src="@asset('js/popper.min.js')"></script>
    window.onload = function() {
        if (window.jQuery) {
            // jQuery is loaded
            $('#loaded').html('JQuery is loaded');

        } else {
            // jQuery is not loaded
            $('#loaded').html('JQuery failed to load');


For more information send a message to info at phpclasses dot org.