承接 jsemajtacka/text-block 相关项目开发

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

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

jsemajtacka/text-block

最新稳定版本:2.0.0

Composer 安装命令:

composer require jsemajtacka/text-block

包简介

Simple Nette Framework extension for text blocks.

关键字:

README 文档

README

This is a simple Nette Framework extension for Text Block.

Warning! This extension expects using Contributte Translation for retrieving the current locale and Contributte Doctrine-extensions-knplabs for the TextBlock translation.

Installation

Use Composer to install this extension:

$ composer reguire jsemajtacka/text-block

Configuration

Add this to your configuration .neon file:

extensions:
    textBlock: JsemAjtacka\TextBlock\DI\TextBlockExtension

textBlock:
    textBlockService: Path\To\Your\Text\Block\Service\Class

Example of usage

BasePresenter.php:

class BasePresenter extends Nette\Application\UI\Presenter
{
    #[Inject]
    public TextBlockFactory $textBlockFactory;

    protected function createComponentTextBlock(): TextBlockControl
    {
        return $this->textBlockFactory->create();
    }
}

@layout.latte:

{control textBlock "textBlockSlug"}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-07-06