承接 dek-cz/title-control 相关项目开发

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

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

dek-cz/title-control

最新稳定版本:1.1.1

Composer 安装命令:

composer require dek-cz/title-control

包简介

Nette control for managing title in HTML header.

README 文档

README

Build Status Downloads this Month Latest stable Coverage Status

Installation

Via Composer:

$ composer require dek-cz/title-control

Usage

First register the control factory in your config:

services:
    -
        implement: Dekcz\TitleControl\ITitleControlFactory

Use the control factory in your presenter:

protected function createComponentTitle(): Dekcz\TitleControl\TitleControl
{
    $control = $this->titleControlFactory->create();
    $control->setTitle('My title');
    return $control;
}

And render it in your Latte template:

<html>
<head>
    {control title}
</head>
<body>
    ...
</body>
</html>

We can also use multi title with a separator. Default separator is: ' | '

    $control->addItem('One')->addItem('Two'); // 'One | Two'

Change the separator:

    $control->setSeparator(' ~ ');

We can also use nette translator

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2021-03-04