craft-plugin craft-status-code
Returns the HTTP status code within twig templates
squaresandbrackets/craft-status-code
Returns the HTTP status code within twig templates
- Tuesday, May 29, 2018
- by squaresandbrackets
- Repository
- 1 Watchers
- 1 Stars
- 2 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 5 Versions
- 0 % Grown
Status Code plugin for Craft CMS 3.x
Returns the HTTP status code within twig templates by simply calling craft.getHttpStatus()
,, (*1)
, (*2)
Requirements
This plugin requires Craft CMS 3.0.0-beta.23 or later., (*3)
Installation
To install the plugin, follow these instructions., (*4)
-
Open your terminal and go to your Craft project:, (*5)
cd /path/to/project
-
Then tell Composer to load the plugin:, (*6)
composer require squaresandbrackets/craft-status-code
-
In the Control Panel, go to Settings → Plugins and click the “Install” button for Status Code., (*7)
How to use it in your twig template
{{ craft.getHttpStatus() }}
Brought to you by Squares And Brackets, (*8)
dev-master
9999999-dev
Returns the HTTP status code within twig templates
Sources
Download
MIT
The Requires
cms
status code
craftcms
craft-plugin
craft
dev-dev
dev-dev
Returns the HTTP status code within twig templates
Sources
Download
MIT
The Requires
cms
status code
craftcms
craft-plugin
craft
1.0.2
1.0.2.0
Returns the HTTP status code within twig templates
Sources
Download
MIT
The Requires
cms
status code
craftcms
craft-plugin
craft
1.0.1
1.0.1.0
Returns the HTTP status code within twig templates
Sources
Download
MIT
The Requires
cms
status code
craftcms
craft-plugin
craft
1.0.0
1.0.0.0
Returns the HTTP status code within twig templates
Sources
Download
MIT
The Requires
cms
status code
craftcms
craft-plugin
craft