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: Update of examples/views/relative/relative.blade.php
Date: 2 months ago
Size: 934 bytes
 

Contents

Class file image Download
baseurl: <b>{!! $baseurl !!}</b><br>
url: <b>{!! $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'] !!}</b><br>
<hr>
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>
<hr>
asset url: <b>@@asset('img/cleaning.gif')</b><br>
asset url: <b>@asset('img/cleaning.gif')</b><br>

<img src="@asset('img/cleaning.gif')">
<hr>
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>

<script src="@asset('js/jquery.min.js')"></script>
<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');
        }
    }

</script>


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