squaresandbrackets/craft-status-code
Composer 安装命令:
composer require squaresandbrackets/craft-status-code
包简介
Returns the HTTP status code within twig templates
README 文档
README
Returns the HTTP status code within twig templates by simply calling craft.getHttpStatus(),
Requirements
This plugin requires Craft CMS 3.0.0-beta.23 or later.
Installation
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project -
Then tell Composer to load the plugin:
composer require squaresandbrackets/craft-status-code -
In the Control Panel, go to Settings → Plugins and click the “Install” button for Status Code.
How to use it in your twig template
{{ craft.getHttpStatus() }}
- Release it
Brought to you by Squares And Brackets
统计信息
- 总下载量: 16
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-02-12
