Showing 7 of 1,975 result(s)
…stylesheet" href = "//my/awesome/styles.css" > 5 {{ /se_asset_queue : queue }} When using the se_asset_queue:queue tag we do not need to specify if something is a script or stylesheet. Internally, the asset queue system will parse the contents...
…les to quickly access the details of the neighboring elements at any position within our array: Example 1.14 The template in Example 1.14 would produce results similar to the following: Example 1.15 Our output in Example 1.15 is pretty exciting...
So we know how to get the input from the user, but how do we handle the occasional situation where we have ambiguous input? For example say we have a form field named name set to John Doe for a user's name using a POST request. In addition we also...
There are numerous ways to check if an array index is even or odd within an Antlers template. The first and simplest is to use the switch tag to alternate between two classes. We will use the data in Example 1.63 throughout this section: Example...
The following examples will demonstrate the various ways to invoke the every method: After the above code has executed, the $allAlphabetic variable would contain the value false . In the following example, we will check to see if all users in the...
…ty. The $signature property is used to specify what arguments and options the command can accept (this property did not exist in Laravel versions prior to version 5.1; options and arguments used to be defined using the getOptions and getArguments...
Our parser can now understand our simple filter language, and produces the output that we would expect. However, we are able to say it produces the output we expect because we know exactly what the input to the program should be; new users of our...