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: 1 year ago
Size: 360 bytes


Class file image Download
@inject("metric" , 'MetricsService\Metric')
@inject("simpleclass" ,'SimpleClass')
    Monthly Revenue: {{ $metric->monthlyRevenue() }}.
    Ping: {{ $simpleclass->ping('pong!') }}.

@inject("ohterSimpleClass", "SimpleClass")

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

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