Showing 10 of 2,133 results.

se_view Tag

…he se_view:rendered tag can be used to check if a view has already been rendered: 1 {{ partial : my / partial / }} 2 3 {{ if { se_view : rendered name = " my.partial " } }} 4 It has been rendered. 5 {{ else }} 6 It has not. 7 {{ /if }} This tag...

Example Use | Laravel 5: Adding Elements to the Array with add

Consider the following code snippet: 1 use Illuminate \ Support \ Arr ; 2 3 $ myArray = [ 4 ' animal ' => ' Araripe Manakin ' , 5 ' plant ' => ' Pineland Wild Petunia ' 6 ] ; 7 8 $ myArray = Arr :: add ( 9 $ myArray , 10 ' insect ' , 11 '...

Laravel MessageBag Public API: getFormat

…15 $ format = $ messageBag -> getFormat ( ) ; 16 17 // Reset the format. 18 $ messageBag -> setFormat ( ) ; 19 20 // :message 21 $ format = $ messageBag -> getFormat ( ) ;This article is the start of a mini-series about Laravel's ErrorMessageBag...

The is:spam Filter | The "is" Filters

The is:spam filter allows you to filter comments based on whether or not it is considered spam. It accepts a boolean value, or the wildcard ( * ) value. The following example filters all comments that were flagged as spam: 1 {{ meerkat : responses...

Front-end Templating | Overview

In order for meta and link tags to appear in the output of your templates, you will need to use the se_meta Antlers tag. You should remove all hardcoded meta/link tags that you will be managing using the metadata builders so duplicates do not...

findDirectiveByName | Querying Document Nodes

Attempts to locate the first instance of a directive with the provided name. Returns the first instance of DirectiveNode with the provided name. Returns null if no directive was found. Argument Description $name The directive name. 1 <?php 2 3 use...

submit Event Method | Advanced Reply Forms

The sumbit() method is called when a visitor clicks on the "Submit Reply" button. This method is wired up to the form's submit event, so you can do anything you'd like here: 1 MeerkatReply . submit = function ( evt ) { 2 // Handle the form. 3...