Showing 10 of 2,133 results.

Parser Errors

…y with an @endverbatim directive. Parser errors will not cause the parsing process to fail. Instead, parser errors are collected internally. We can retrieve them from a parser instance by calling the getErrors method, which returns a Laravel...

The Finish Line | Building a Simple Statamic Request Addon

Congratulations you've just implemented a really simple Statamic addon tag that can be used to learn about request input. It would be trivial to expand this addon tag to learn more about the incoming request; this might be something for another...

Templating Considerations | Creating Image Templates

When creating templates, be sure to keep the following considerations in mind: Templates are rendered using raw HTML, and do not make a request to your site for each page. General Cascade data will be made available to you, but you should not rely...

getFirstFatalError | Validating Documents

Retrieves the first fatal error. If the error source contains multiple types of errors, such as parser errors and validation errors, all errors will be considered. Fatal errors are considered those that would produce invalid compiled PHP code,...

Rendering Code Samples in Search Results | Search Results Tag

The documentation search indexer will collect code samples and store them within the index entry. The documentation:results makes these available as a code_samples array for each item. Each discovered code sample will contain the following...

Laravel String Helper Function: slug

The slug helper method will format the given $title to resemble a URI slug. It does this through a series of steps: Convert the, $title, to ASCII formatting (using the, ascii, function);, Converts whitespace, dashes, underscores to the,...