1. Go to this page and download the library: Download costsrl/cost-translation 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/ */
costsrl / cost-translation example snippets
composer.phar pplication configuration in
and add 'CostNavigation'.
copy costlanguage.global.php.dist to ./config/autoload
An example application configuration could look like the following:
render menu in layout.phtml
echo $this->menulanguage()->render();