This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// disable DOMPDF's internal autoloader if you are using Composer | |
define('DOMPDF_ENABLE_AUTOLOAD', false); | |
// include DOMPDF's default configuration | |
require_once $app->basePath() . '/vendor/dompdf/dompdf/dompdf_config.inc.php'; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Склоняет существительное в зависимости от числительного идущего перед ним. | |
* Пример использования: | |
* 1. pluralForm($n, "письмо", "письма", "писем", 'письма отсутствуют') | |
* 2. pluralForm($n, array("письмо", "письма", "писем", 'письма отсутствуют')); | |
* @param $n int|float число | |
* @param $normative string|array Именительный падеж слова ИЛИ массив | |
* @param $singular string Родительный падеж ед. число |
NewerOlder