承接 thelia/smarty-redirection-module 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

thelia/smarty-redirection-module

最新稳定版本:2.0.0

Composer 安装命令:

composer require thelia/smarty-redirection-module

包简介

README 文档

README

This module adds a smarty function to redirect the user directly from a template

Installation

Manually

  • Copy the module into <thelia_root>/local/modules/ directory and be sure that the name of the module is SmartyRedirection.
  • Activate it in your thelia administration panel

Composer

Add it in your main thelia composer.json file

composer require thelia/smarty-redirection-module ~1.0.0

Usage

You can use the {redirect } function like {url }. Only one parameter is specific to this function: status.

If this parameter isn't given, its value is 302. Otherwise, you can set it to 301 to define a permanent redirection in a template.

Example

{if ! $foo}
    {redirect path="/anywhere"}
{/if}
{if ! $foo}
    {redirect path="/anywhere" status=301}
{/if}

统计信息

  • 总下载量: 17.74k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 6
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-3.0
  • 更新时间: 2015-08-05