PHP code example of wakers / cms-lang-module

1. Go to this page and download the library: Download wakers/cms-lang-module library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

wakers / cms-lang-module example snippets


// $this->translate - Wakers\LangModule\Translator\Translate (načteno z DI)
$this->translate->translate('Your name is: %name%', ['name' => $name]);