Skip to content

Proper way how to load translator into the presenters and controls template in the Nette framework based applications

Notifications You must be signed in to change notification settings

mstefan21/translateable-template-factory

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#nedryse/translateable-template-factory (cc)# Pavel Železný (2bfree), 2014 (pavelzelezny.cz)

Requirements

Nette Framework 2.2.0 or higher

Documentation

Proper way how to load translator into the presenters and controls template in the Nette framework based applications

Instalation

Prefered way to intall is by the Composer

composer require nedryse/translateable-template-factory:~1.0.0

Or by manualy adding into the composer.json

{
	"require":{
		"nedryse/translateable-template-factory": "~1.0.0"
	}
}

Setup

Add following code into the config.neon

common:
	services:
		nette.templateFactory: Nedryse\Nette\Bridges\ApplicationLatte\TranslatableTemplateFactory

Usage

At the moment of the template creation in the presenter or in the control, the translator is already loaded in it

About

Proper way how to load translator into the presenters and controls template in the Nette framework based applications

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%