PHP Classes

File: examples/views/Test/inject2.blade.php

Recommend this page to a friend!
  Classes of Jorge Castro   BladeOne   examples/views/Test/inject2.blade.php   Download  
File: examples/views/Test/inject2.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/Test/inject2.blade.php
Date: 3 years ago
Size: 360 bytes
 

Contents

Class file image Download
@set($x1=20)
Injection:<hr>
@inject("metric" , 'MetricsService\Metric')
@inject("simpleclass" ,'SimpleClass')
<hr>
<div>
    Monthly Revenue: {{ $metric->monthlyRevenue() }}.
</div>
<div>
    Ping: {{ $simpleclass->ping('pong!') }}.
</div>


@inject("ohterSimpleClass", "SimpleClass")

<div>
    Ping Again: {{ $ohterSimpleClass->ping('pong again!') }}.
</div>