定制 vrestihnat/title-control 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

vrestihnat/title-control

Composer 安装命令:

composer require vrestihnat/title-control

包简介

Nette control for managing title in HTML header.

README 文档

README

Build Status Downloads this Month Latest stable

Installation

Via Composer:

$ composer require vrestihnat/title-control

Usage

First register the control factory in your config:

services:
    -
        implement: Vrestihnat\TitleControl\ITitleControlFactory

Use the control factory in your presenter:

protected function createComponentTitle(): Vrestihnat\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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2021-01-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固