{"id":271519,"date":"2016-01-02T21:47:01","date_gmt":"2016-01-02T18:47:01","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=271519"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=271519","title":{"rendered":"\u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043f\u043e\u0438\u0441\u043a \u043f\u043e \u0440\u0430\u0437\u0434\u0430\u0447\u0430\u043c rutracker.org \u2013 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0430 Yii2"},"content":{"rendered":"<p>       \u041d\u0430\u0432\u0435\u044f\u043d\u043e <a href=\"http:\/\/habrahabr.ru\/post\/273777\/\">\u044d\u0442\u043e\u0439<\/a> \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0435\u0439.<\/p>\n<p>  \u0417\u0434\u0435\u0441\u044c \u043e\u043f\u0438\u0441\u0430\u043d\u043e, \u043a\u0430\u043a \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0438\u0441\u043a \u043f\u043e \u0440\u0430\u0437\u0434\u0430\u0447\u0430\u043c rutracker.org \u043d\u0430 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u043c \u0445\u043e\u0441\u0442\u0438\u043d\u0433\u0435 \/ \u043b\u043e\u043a\u0430\u043b\u0445\u043e\u0441\u0442\u0435.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/8df\/7e4\/710\/8df7e4710359499cac026ed67b642972.png\"\/><\/p>\n<p>  <b>\u041f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0441\u043e\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0435:<\/b>  <\/p>\n<ul>\n<li>\u0432\u0441\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043f\u0440\u043e\u0432\u043e\u0434\u044f\u0442\u0441\u044f \u0432 unix-\u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0439 \u0441\u0440\u0435\u0434\u0435. \u041d\u044e\u0430\u043d\u0441\u044b \u0434\u043b\u044f windows \u043c\u043d\u0435, \u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u043d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b;<\/li>\n<li>\u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0443 \u0432\u0430\u0441 \u0431\u0430\u0437\u043e\u0432\u044b\u0445 \u0437\u043d\u0430\u043d\u0438\u0439 Unix shell, Yii2, git<\/li>\n<li>\u043b\u0438\u0447\u043d\u043e \u044f \u0432\u0438\u0436\u0443 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043c\u0430\u043b\u043e \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0435\u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u044d\u0442\u043e\u0433\u043e (\u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u0438\u0441\u043a\u0430 \u043f\u043e \u0440\u0430\u0437\u0434\u0430\u0447\u0430\u043c) \u0440\u0435\u0448\u0435\u043d\u0438\u044f;<\/li>\n<li>\u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0430 yii2 advanced template \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0438\u0437\u0431\u044b\u0442\u043e\u0447\u043d\u0430, \u043d\u043e \u044f \u043a \u043d\u0435\u043c\u0443 \u043f\u0440\u0438\u0432\u044b\u043a;<\/li>\n<li>\u044f \u0432\u043f\u0435\u0440\u0432\u044b\u0435 \u0432 \u0436\u0438\u0437\u043d\u0438 \u0432\u0438\u0436\u0443 spinx, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0442\u0430\u043c \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0435 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0441\u0442\u0440\u0430\u043d\u043d\u043e\u0441\u0442\u0438;<\/li>\n<li>\u0432 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043c\u0435\u0441\u0442\u0430\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0441\u043f\u043e\u0440\u043d\u044b\u0435 (\u0431\u0443\u0434\u0443 \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u0435\u043d \u0437\u0430 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0438 \u00ab\u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u00bb).<\/li>\n<\/ul>\n<p>  <a name=\"habracut\"><\/a><br \/>  \u041f\u0440\u043e\u0447\u0438\u0442\u0430\u0432 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u0442\u043e\u043f\u0438\u043a \u043d\u0430 \u044d\u0442\u0443 \u0442\u0435\u043c\u0443, \u0431\u044b\u043b, \u0435\u0441\u043b\u0438 \u0447\u0435\u0441\u0442\u043d\u043e, \u0441\u043b\u0435\u0433\u043a\u0430 \u0440\u0430\u0437\u043e\u0447\u0430\u0440\u043e\u0432\u0430\u043d \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u0430\u0432\u0442\u043e\u0440. \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0438 \u0441\u0434\u0435\u043b\u0430\u043b \u0432\u0441\u0451 \u0441\u0430\u043c.<\/p>\n<p>  \u0412\u0435\u0441\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u2013 \u043d\u0430 <a href=\"https:\/\/github.com\/andrew72ru\/rutracker-yii2\">github<\/a>, \u043a\u043e\u0434 \u0446\u0435\u043b\u0438\u043a\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0442\u0430\u043c, \u0437\u0434\u0435\u0441\u044c \u0431\u0443\u0434\u0443 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0442\u0440\u044b\u0432\u043a\u0438, \u0434\u043b\u044f \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f \u0441\u0443\u0442\u0438. <\/p>\n<p>  \u0412 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0438\u043c\u043f\u043e\u0440\u0442 csv-\u0444\u0430\u0439\u043b\u043e\u0432 \u0438\u0437 <a href=\"http:\/\/rutracker.org\/forum\/viewtopic.php?t=4824458\">\u044d\u0442\u043e\u0439<\/a> \u0440\u0430\u0437\u0434\u0430\u0447\u0438 (\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0438\u0437 \u043a\u043e\u043d\u0441\u043e\u043b\u0438), \u0438 \u043f\u043e\u0438\u0441\u043a \u043f\u043e \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044e \/ \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 \/ \u043f\u043e\u0434\u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 \u0440\u0430\u0437\u0434\u0430\u0447\u0438.<\/p>\n<p>  <b>\u0414\u0435\u0442\u0430\u043b\u0438<\/b><\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u0435\u0441\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u043a\u0430\u043a \u0435\u0441\u0442\u044c, \u0442\u043e \u0432\u043e\u0442 \u043a\u0440\u0430\u0442\u043a\u0430\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f:<\/p>\n<ol>\n<li>\u043a\u043b\u043e\u043d\u0438\u0440\u0443\u0439\u0442\u0435 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 (git clone <a href=\"https:\/\/github.com\/andrew72ru\/rutracker-yii2.git\">github.com\/andrew72ru\/rutracker-yii2.git<\/a>)<\/li>\n<li>\u043f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u0432 \u043f\u0430\u043f\u043a\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b (composer install)<\/li>\n<li>\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0439\u0442\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 (.\/init)<\/li>\n<li>\u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445, \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u0442\u0435 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043d\u0435\u0439 \u0432 common\/config\/main-local.php<\/li>\n<li>\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u044e (.\/yii migrate)<\/li>\n<li>\u0441\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u0443\u0439\u0442\u0435 \u0432\u0430\u0448 \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440 \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u043f\u0440\u043e\u0435\u043a\u0442\u0443 (\u043a\u043e\u0440\u043d\u0435\u0432\u0430\u044f \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044f \u2013 frontend\/web)<\/li>\n<li>\u0441\u043a\u0430\u0447\u0430\u0439\u0442\u0435 <a href=\"http:\/\/rutracker.org\/forum\/viewtopic.php?t=4824458\">\u0440\u0430\u0437\u0434\u0430\u0447\u0443<\/a><\/li>\n<li>\u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 frontend\/runtime\/csv<\/li>\n<li>\u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0444\u0430\u0439\u043b\u043e\u0432 \u0438\u0437 \u0440\u0430\u0437\u0434\u0430\u0447\u0438 \u0432 \u044d\u0442\u043e\u0442 \u043a\u0430\u0442\u0430\u043b\u043e\u0433. \u0412\u0441\u044f \u0440\u0430\u0437\u0434\u0430\u0447\u0430 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0430 \u043f\u043e \u043f\u0430\u043f\u043a\u0430\u043c, \u043d\u0430\u0437\u0432\u0430\u043d\u044b \u043e\u043d\u0438 \u0434\u0430\u0442\u0430\u043c\u0438, \u044f \u0431\u0440\u0430\u043b \u043f\u0430\u043f\u043a\u0443 \u0441 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0434\u0430\u0442\u043e\u0439<\/li>\n<li>\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 .\/yii import\/import<\/li>\n<\/ol>\n<p>  \u041d\u0430 \u043c\u043e\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0438\u043c\u043f\u043e\u0440\u0442 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u043b\u0441\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0448\u0435\u0441\u0442\u044c \u0447\u0430\u0441\u043e\u0432 \u2013\u00a0\u0442\u0430\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u043e\u043b\u0443\u0442\u043e\u0440\u0430 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u043e\u0432 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u0440\u0430\u0437\u0434\u0430\u0447, \u043d\u0435 \u0443\u0434\u0438\u0432\u043b\u044f\u0439\u0442\u0435\u0441\u044c.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u0445\u0435\u043c\u0430 \u0411\u0414<\/b><\/p>\n<div class=\"spoiler_text\">\u0422\u0430\u0431\u043b\u0438\u0446\u0430 \u0434\u043b\u044f \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0439:<\/p>\n<pre><code class=\"sql\">CREATE TABLE `categories` (   `id` int(11) NOT NULL AUTO_INCREMENT,   `category_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,   `file_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,   PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=37 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; <\/code><\/pre>\n<p>  \u0422\u0430\u0431\u043b\u0438\u0446\u0430 \u043f\u043e\u0434\u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0439:<\/p>\n<pre><code class=\"sql\">CREATE TABLE `subcategory` (   `id` int(11) NOT NULL AUTO_INCREMENT,   `forum_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,   PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1239 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; <\/code><\/pre>\n<p>  \u0422\u0430\u0431\u043b\u0438\u0446\u0430 \u0440\u0430\u0437\u0434\u0430\u0447:<\/p>\n<pre><code class=\"sql\">CREATE TABLE `torrents` (   `id` int(11) NOT NULL AUTO_INCREMENT,   `forum_id` int(11) DEFAULT NULL,   `forum_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,   `topic_id` int(11) DEFAULT NULL,   `hash` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,   `topic_name` text COLLATE utf8_unicode_ci,   `size` bigint(20) DEFAULT NULL,   `datetime` int(11) DEFAULT NULL,   `category_id` int(11) NOT NULL,   `forum_name_id` int(11) NOT NULL,   PRIMARY KEY (`id`),   UNIQUE KEY `topic_id` (`topic_id`),   UNIQUE KEY `hash` (`hash`),   KEY `category_torrent_fk` (`category_id`),   KEY `torrent_subcat_id` (`forum_name_id`),   CONSTRAINT `category_torrent_fk` FOREIGN KEY (`category_id`) REFERENCES `categories` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,   CONSTRAINT `torrent_subcat_id` FOREIGN KEY (`forum_name_id`) REFERENCES `subcategory` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=1635590 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; <\/code><\/pre>\n<p>  \u0422\u0430\u0431\u043b\u0438\u0446\u0430 \u0441 \u0440\u0430\u0437\u0434\u0430\u0447\u0430\u043c\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0438\u0437\u0431\u044b\u0442\u043e\u0447\u043d\u0430 (\u043a\u043e\u043b\u043e\u043d\u043a\u0430 forum_name \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0435 \u043d\u0443\u0436\u043d\u0430, \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430 \u0432 \u0432\u0438\u0434\u0435 \u0441\u0432\u044f\u0437\u0438), \u043d\u043e \u0443\u0434\u0430\u043b\u044f\u0442\u044c \u044f \u0435\u0451 \u043d\u0435 \u0441\u0442\u0430\u043b, \u0447\u0442\u043e\u0431 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c\u0441\u044f \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043a \u043d\u0435\u0439 \u0438 \u043d\u0435 \u0437\u0430\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c JOIN.  <\/div>\n<\/div>\n<p>  <b>\u041c\u043e\u0434\u0435\u043b\u0438<\/b><\/p>\n<p>  \u041c\u043e\u0434\u0435\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0447\u0435\u0440\u0435\u0437 gii \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0431\u0435\u0437 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439. \u043d\u0435 \u0434\u0443\u043c\u0430\u044e, \u0447\u0442\u043e \u0441\u0442\u043e\u0438\u0442 \u0438\u0445 \u0432\u0441\u0435 \u0437\u0434\u0435\u0441\u044c \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442\u044c (\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 github), \u043a\u0440\u043e\u043c\u0435 \u043e\u0434\u043d\u043e\u0439, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0435\u0439\u0441\u044f \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430 \u0447\u0435\u0440\u0435\u0437 Sphinx.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">TorrentSearch.php<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"php\">namespace common\\models;  use Yii; use yii\\helpers\\ArrayHelper; use yii\\sphinx\\ActiveDataProvider; \/\/ \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b use yii\\sphinx\\ActiveRecord;          \/\/ \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 yii2-sphinx  \/**  * This is the model class for index &quot;torrentz&quot;.  *  * @property integer $id  * @property string $size  * @property string $datetime  * @property integer $id_attr  * @property integer $size_attr  * @property integer $datetime_attr  * @property string $topic_name  * @property string $topic_id  * @property integer $topic_id_attr  * @property integer $category_attr  * @property string $category_id  * @property string $name_attr  * @property integer $forum_name_id_attr  *\/ class TorrentSearch extends ActiveRecord {     \/**      * @inheritdoc      *\/     public static function indexName()     {         return '{{%torrentz}}';     }      \/**      * @inheritdoc      *\/     public function rules()     {         return [             [['id'], 'required'],             [['id'], 'unique'],             [['id'], 'integer'],             [['id_attr'], 'integer'],             [['topic_name', 'topic_id', 'category_id'], 'string'],             [['name_attr'], 'string'],             [['id', 'size_attr', 'datetime_attr', 'id_attr', 'topic_id_attr', 'category_attr', 'forum_name_id_attr'], 'integer'],             [['size', 'datetime', 'topic_name', 'name_attr'], 'string']         ];     }      \/**      * @inheritdoc      *\/     public function attributeLabels()     {         return [             'id_attr' =&gt; Yii::t('app', 'ID'),             'name_attr' =&gt; Yii::t('app', 'Topic Name'),             'id' =&gt; Yii::t('app', 'ID'),             'size' =&gt; Yii::t('app', 'Size'),             'datetime' =&gt; Yii::t('app', 'Datetime'),             'topic_name' =&gt; Yii::t('app', 'Topic Name'),             'size_attr' =&gt; Yii::t('app', 'Size'),             'datetime_attr' =&gt; Yii::t('app', 'Torrent Registered Date'),             'category_attr' =&gt; Yii::t('app', 'Category Name'),             'forum_name_id_attr' =&gt; Yii::t('app', 'Forum Name'),         ];     }      \/**      * \u0424\u0443\u043d\u043a\u0446\u0438\u044f \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430      *       * @param $params      * @return ActiveDataProvider      *\/     public function search($params)     {         $query = self::find();         $dataProvider = new ActiveDataProvider([             'query' =&gt; $query,         ]);          $this-&gt;load($params);          $query-&gt;match($this-&gt;name_attr);         $query-&gt;filterWhere(['category_attr' =&gt; $this-&gt;category_attr]);         $query-&gt;andFilterWhere(['forum_name_id_attr' =&gt; $this-&gt;forum_name_id_attr]);          $dataProvider-&gt;sort = [             'defaultOrder' =&gt; ['category_attr' =&gt; SORT_ASC, 'datetime_attr' =&gt; SORT_DESC],         ];          return $dataProvider;     }      \/**      * \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043c\u0430\u0441\u0441\u0438\u0432 \u043f\u043e\u0434\u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0439 (forum_name) \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u043e\u0439 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438      *      * @param null|integer $id      * @return array      *\/     public static function subsForCat($id = null)     {         $query = Subcategory::find();         if ($id != null && ($cat = Categories::findOne($id)) !== null)         {             $subcatsArr = array_keys(self::find()                 -&gt;where(['category_attr' =&gt; $id])                 -&gt;groupBy('forum_name_id_attr')                 -&gt;indexBy('forum_name_id_attr')                 -&gt;limit(10000)                 -&gt;asArray()                 -&gt;all());             $query-&gt;andWhere(['id' =&gt; $subcatsArr]);         }          return ArrayHelper::map($query-&gt;asArray()-&gt;all(), 'id', 'forum_name');     }      \/**      * \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043c\u0430\u0441\u0441\u0438\u0432 \u0441 \u043e\u0434\u043d\u043e\u0439 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0435\u0439, \u0435\u0441\u043b\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u0430 \u043f\u043e\u0434\u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f      *      * @param null|integer $id      * @return array      *\/     public static function catForSubs($id = null)     {         $query = Categories::find();         if($id != null && ($subCat = Subcategory::findOne($id)) !== null)         {             \/** @var TorrentSearch $category *\/             $category = self::find()-&gt;where(['forum_name_id_attr' =&gt; $id])-&gt;one();             $query-&gt;andWhere(['id' =&gt; $category-&gt;category_attr]);         }          return ArrayHelper::map($query-&gt;asArray()-&gt;all(), 'id', 'category_name');     } }  <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <b>\u0418\u043c\u043f\u043e\u0440\u0442<\/b><\/p>\n<p>  \u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0438\u0434\u0435\u044f \u2013\u00a0\u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 (\u0444\u0430\u0439\u043b category_info.csv), \u0437\u0430\u0442\u0435\u043c \u2013 \u0440\u0430\u0437\u0434\u0430\u0447\u0438 (\u0444\u0430\u0439\u043b\u044b category_*.csv), \u043f\u043e \u0445\u043e\u0434\u0443 \u0438\u043c\u043f\u043e\u0440\u0442\u0430 \u0440\u0430\u0437\u0434\u0430\u0447 \u0438\u0437 \u043d\u0438\u0445 \u0431\u0435\u0440\u0435\u043c \u043f\u043e\u0434\u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 \u0438 \u043f\u0438\u0448\u0435\u043c \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u0438\u043c\u043f\u043e\u0440\u0442\u0430<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"php\">namespace console\\controllers;  use common\\models\\Categories; use common\\models\\Subcategory; use common\\models\\Torrents; use Yii; use yii\\console\\Controller; use yii\\helpers\\Console; use yii\\helpers\\VarDumper;  \/**  * \u0418\u043c\u043f\u043e\u0440\u0442 \u0440\u0430\u0437\u0434\u0430\u0447 \u0438 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0439 \u0438\u0437 csv-\u0444\u0430\u0439\u043b\u043e\u0432  *  * Class ImportController  * @package console\\controllers  *\/ class ImportController extends Controller {     public $color = true;      \/**      * \u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f      * @return int      *\/     public function actionIndex()     {         $this-&gt;stdout(&quot;Default: import\/import [file_path]. \\nDefault file path is frontend\/runtime\/csv\\n\\n&quot;);          return Controller::EXIT_CODE_NORMAL;     }      \/**      * \u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0438\u043c\u043f\u043e\u0440\u0442\u0430      *      * @param string $path      * @return int      *\/     public function actionImport($path = 'frontend\/runtime\/csv')     {         $fullPath = Yii::getAlias('@' . $path);         if(!is_dir($fullPath))         {             $this-&gt;stderr(&quot;Path '{$fullPath}' not found\\n&quot;, Console::FG_RED);             return Controller::EXIT_CODE_ERROR;         }          if(is_file($fullPath . DIRECTORY_SEPARATOR . 'category_info.csv'))             $categories = $this-&gt;importCategories($fullPath);         else         {             $this-&gt;stderr(&quot;File 'category_info.csv' not found\\n&quot;, Console::FG_RED);             return Controller::EXIT_CODE_ERROR;         }          if($categories === false)         {             $this-&gt;stderr(&quot;Categories is NOT imported&quot;, Console::FG_RED);             return Controller::EXIT_CODE_ERROR;         }          \/** @var Categories $cat *\/         foreach ($categories as $cat)         {             if(!is_file($fullPath . DIRECTORY_SEPARATOR . $cat-&gt;file_name))                 continue;              $this-&gt;importTorrents($cat, $path);         }           return Controller::EXIT_CODE_NORMAL;     }      \/**      * \u0418\u043c\u043f\u043e\u0440\u0442 \u0442\u043e\u0440\u0440\u0435\u043d\u0442\u043e\u0432      *      * @param \\common\\models\\Categories $cat      * @param                           $path      *\/     private function importTorrents(Categories $cat, $path)     {         $filePath = Yii::getAlias('@' . $path . DIRECTORY_SEPARATOR . $cat-&gt;file_name);          $row = 0;         if (($handle = fopen($filePath, &quot;r&quot;)) !== FALSE)         {             while (($data = fgetcsv($handle, 0, &quot;;&quot;)) !== FALSE)             {                 $row++;                  $model = Torrents::findOne(['forum_id' =&gt; $data[0], 'topic_id' =&gt; $data[2]]);                 if($model !== null)                     continue;                   \/\/ Subcategory                 $subcat = $this-&gt;importSubcategory($data[1]);                 if(!($subcat instanceof Subcategory))                 {                     $this-&gt;stderr(&quot;Error! Unable to import subcategory!&quot;);                     $this-&gt;stdout(&quot;\\n&quot;);                     continue;                 }                  $this-&gt;stdout(&quot;Row {$row} of category \\&quot;{$cat-&gt;category_name}\\&quot; &quot;);                 $this-&gt;stdout(&quot;and subcategory \\&quot;{$subcat-&gt;forum_name}\\&quot;: \\n&quot;);                  if($model === null)                 {                     if(isset($data[4]))                     $data[4] = str_replace('\\\\', '\/', $data[4]);                      \/\/ \u0417\u0434\u0435\u0441\u044c \u043d\u0430\u0434\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b\u0438\u0441\u044c \u043b\u0438 \u043f\u043e\u043b\u044f, \u0430 \u0442\u043e \u0441 \u044d\u0442\u0438\u043c \u0431\u044b\u0432\u0430\u044e\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b                     \/\/ \u041c\u043e\u0436\u043d\u043e \u043f\u043e\u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u0440\u0430\u0441\u043f\u0430\u0440\u0441\u0438\u0442\u044c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0438 \u0443\u0431\u0440\u0430\u0442\u044c \u043e\u0442\u0442\u0443\u0434\u0430 \u0432\u0441\u0435 \u043f\u043e\u0434\u043e\u0437\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b,                      \/\/ \u043d\u043e \u044f \u0440\u0435\u0448\u0438\u043b \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0442\u044c, \u0435\u0441\u043b\u0438 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0430                      if(!isset($data[0]) || !isset($data[1]) || !isset($data[2]) || !isset($data[3]) || !isset($data[4]) || !isset($data[5]) || !isset($data[6]))                     {                     $this-&gt;stderr(&quot;Error! Undefined Field!\\n&quot;, Console::FG_RED);                     \\yii\\helpers\\VarDumper::dump($data);                     $this-&gt;stdout(&quot;\\n&quot;);                     continue;                     }                      $model = new Torrents([                         'forum_id' =&gt; $data[0],                         'forum_name' =&gt; $data[1],                         'topic_id' =&gt; $data[2],                         'hash' =&gt; $data[3],                         'topic_name' =&gt; $data[4],                         'size' =&gt; $data[5],                         'datetime' =&gt; strtotime($data[6]),                         'category_id' =&gt; $cat-&gt;id,                     ]);                 }                 $model-&gt;forum_name_id = $subcat-&gt;id;                 if($model-&gt;save())                 {                     $this-&gt;stdout(&quot;Torrent \\t&quot;);                     $this-&gt;stdout($model-&gt;topic_name, Console::FG_YELLOW);                     $this-&gt;stdout(&quot; added\\n&quot;);                 }                  $this-&gt;stdout(&quot;\\n&quot;);             }         }     }      \/**      * \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043f\u043e\u0434\u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 (forum_name)      *      * @param string $subcat_name      * @return bool|Subcategory      *\/     private function importSubcategory($subcat_name)     {         $model = Subcategory::findOne(['forum_name' =&gt; $subcat_name]);         if($model === null)             $model = new Subcategory(['forum_name' =&gt; $subcat_name]);          if($model-&gt;save())             return $model;         else         {             VarDumper::dump($model-&gt;errors);         }          return false;     }      \/**      * \u0418\u043c\u043f\u043e\u0440\u0442 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0439      *      * @param $path      * @return array|\\yii\\db\\ActiveRecord[]      *\/     private function importCategories($path)     {         $file = $path . DIRECTORY_SEPARATOR . 'category_info.csv';         $row = 1;         if (($handle = fopen($file, &quot;r&quot;)) !== FALSE)         {             while (($data = fgetcsv($handle, 0, &quot;;&quot;)) !== FALSE)             {                 $row++;                 $this-&gt;stdout(&quot;Row &quot; . $row . &quot;:\\n&quot;);                  $model = Categories::findOne($data[0]);                  if($model === null)                 {                     $model = new Categories([                         'id' =&gt; $data[0],                         'category_name' =&gt; $data[1],                         'file_name' =&gt; $data[2]                     ]);                 }                  if($model-&gt;save())                     $this-&gt;stdout(&quot;Category {$model-&gt;id} with name '{$model-&gt;category_name}' imported\\n&quot;);                  $this-&gt;stdout(&quot;\\n&quot;);             }         } else             return false;          return Categories::find()-&gt;all();     } } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0418\u043c\u043f\u043e\u0440\u0442 \u043b\u0443\u0447\u0448\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0432 screen, \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u0437\u0430\u043a\u0440\u044b\u0442\u044c. \u041c\u043e\u0436\u043d\u043e, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0432\u044b\u0432\u043e\u0434 \u0432 \u0444\u0430\u0439\u043b \u0438 \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043f\u043e\u0442\u043e\u043c, \u043d\u0430 \u0434\u043e\u0441\u0443\u0433\u0435.<\/p>\n<p>  <b>Sphinx<\/b><\/p>\n<p>  \u0414\u043b\u044f debian \u2013 apt-get install sphinxsearch<br \/>  \u0423 \u043c\u0435\u043d\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u0432\u0435\u0440\u0441\u0438\u044f Sphinx 2.2.9<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\/etc\/sphinxsearch\/sphinx.conf<\/b><\/p>\n<div class=\"spoiler_text\"><code> source torrentz {         type = mysql         sql_host = localhost         sql_user = webmaster # \u043b\u043e\u0433\u0438\u043d \u0432 MySQL         sql_pass = webmaster # \u043f\u0430\u0440\u043e\u043b\u044c \u0432 MySQL          sql_db = rutracker # \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0435 \u043d\u0430 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0432\u0430\u0448\u0435\u0439 \u0411\u0414          sql_port = 3306          sql_query_pre = SET NAMES utf8         sql_query_pre = SET CHARACTER SET utf8          sql_query = SELECT id, id AS id_attr, \\                 size, size AS size_attr, \\                 datetime, datetime as datetime_attr, \\                 topic_name, topic_name AS name_attr, \\                 topic_id, topic_id AS topic_id_attr, \\                 category_id, category_id AS category_attr, \\                 forum_name_id, forum_name_id AS forum_name_id_attr \\                 FROM torrents          sql_attr_string = name_attr         sql_attr_uint = id_attr         sql_attr_uint = size_attr         sql_attr_uint = datetime_attr         sql_attr_uint = topic_id_attr         sql_attr_uint = category_attr         sql_attr_uint = forum_name_id_attr  }  index torrentz {         source = torrentz         path = \/var\/lib\/sphinxsearch\/data\/         docinfo = extern         morphology = stem_enru         min_word_len = 2         charset_table = 0..9, A..Z-&gt;a..z, _, a..z, U+410..U+42C-&gt;U+430..U+44C, U+42E..U+42F-&gt;U+44E..U+44F, U+430..U+44C, U+44E..U+44F, U+0401-&gt;U+0435, U+0451-&gt;U+0435, U+042D-&gt;U+0435, U+044D-&gt;U+0435         min_infix_len = 2 }  indexer {         mem_limit = 512M }  searchd {         listen = 0.0.0.0:9306:mysql41         log = \/var\/log\/sphinxsearch\/searchd.log         query_log = \/var\/log\/sphinxsearch\/query.log         read_timeout = 5         max_children = 30         pid_file = \/var\/run\/sphinxsearch\/searchd.pid } <\/code>  <\/div>\n<\/div>\n<p>  \u0418\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439<\/p>\n<pre><code class=\"bash\">indexer --config \/etc\/sphinxsearch\/sphinx.conf --all # \u0434\u043b\u044f \u043f\u0435\u0440\u0432\u043e\u0439 \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u0438 <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">indexer --config \/etc\/sphinxsearch\/sphinx.conf --rotate --all # \u043f\u0435\u0440\u0435\u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u044f \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u043e\u043c \u0434\u0435\u043c\u043e\u043d\u0435 <\/code><\/pre>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u043c \u0432\u0441\u0451. <br \/>  \u0412 \u0432\u0435\u0431-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 \u2013 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 Yii2 GridView, \u043f\u043e\u0438\u0441\u043a \u2013 \u0447\u0435\u0440\u0435\u0437 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u0444\u0438\u043b\u044c\u0442\u0440\u044b.<\/p>\n<p>  <b>\u0427\u0442\u043e \u0431\u044b \u0441\u0442\u043e\u0438\u043b\u043e \u0434\u043e\u0434\u0435\u043b\u0430\u0442\u044c<\/b><\/p>\n<p>  \u0420\u0430\u0437\u0432\u0438\u0432\u0430\u0442\u044c \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0435\u0441\u043b\u0438 \u0445\u043e\u0447\u0435\u0442\u0441\u044f. \u0412 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u044b\u0431\u043e\u0440\u043e\u0447\u043d\u044b\u0439 \u0438\u043c\u043f\u043e\u0440\u0442 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0439 \/ \u043f\u043e\u0434\u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0439, \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0439 \/ \u043f\u043e\u0434\u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0439 \u0432 GridView, API \u0434\u043b\u044f \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043d\u0443 \u0438 \u043f\u043e\u0442\u043e\u043c \u0432\u043e\u043e\u0431\u0449\u0435 \u0432\u0441\u0451 \u0447\u0442\u043e \u0432 \u0433\u043e\u043b\u043e\u0432\u0443 \u043f\u0440\u0438\u0434\u0435\u0442.<\/p>\n<p>  \u041c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c, \u0437\u0430\u0439\u043c\u0443\u0441\u044c \u043d\u0430 \u0434\u043e\u0441\u0443\u0433\u0435.<\/p>\n<p>  P.S. \u041e\u0447\u0435\u043d\u044c \u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e \u0437\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u044f \u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043f\u043e \u043a\u043e\u0434\u0443, \u043d\u043e \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043d\u0435 \u0442\u0440\u0443\u0434\u0438\u0442\u0435\u0441\u044c \u043f\u0438\u0441\u0430\u0442\u044c \u00abphp \u043e\u0442\u0441\u0442\u043e\u0439, \u043f\u0438\u0448\u0438 \u043d\u0430 \u2026&lt;\u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043b\u044e\u0431\u043e\u0439 \u0434\u0440\u0443\u0433\u043e\u0439 \u044f\u0437\u044b\u043a&gt;\u00bb \u2013 \u043c\u044b \u0432\u0441\u0451 \u044d\u0442\u043e \u0434\u0430\u0432\u043d\u043e \u0443\u0436\u0435 \u043e\u0431\u0441\u0443\u0434\u0438\u043b\u0438.<br \/>  \u0422\u0430\u043a\u0436\u0435 \u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0442\u0441\u044f \u0437\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u044f \/ \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043f\u043e \u043a\u043e\u043d\u0444\u0438\u0433\u0443 sphinx, \u0438 \u044f \u0435\u0449\u0435 \u0440\u0430\u0437 \u0445\u043e\u0447\u0443 \u043d\u0430\u043f\u043e\u043c\u043d\u0438\u0442\u044c \u2013\u00a0\u044f \u0435\u0433\u043e \u0432\u0438\u0434\u0435\u043b \u0432\u043f\u0435\u0440\u0432\u044b\u0435 \u0432 \u0436\u0438\u0437\u043d\u0438 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0430\u0432\u0442\u043e\u0440 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u0442\u043e\u043f\u0438\u043a\u0430 \u043f\u0438\u0441\u0430\u043b \u043e \u043d\u0435\u043c. \u041d\u0443 \u0438 \u0434\u043b\u044f \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0430 \u043a\u0430\u043a \u0436\u0435 \ud83d\ude42               <\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/274449\/\"> http:\/\/habrahabr.ru\/post\/274449\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       \u041d\u0430\u0432\u0435\u044f\u043d\u043e <a href=\"http:\/\/habrahabr.ru\/post\/273777\/\">\u044d\u0442\u043e\u0439<\/a> \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0435\u0439.<\/p>\n<p>  \u0417\u0434\u0435\u0441\u044c \u043e\u043f\u0438\u0441\u0430\u043d\u043e, \u043a\u0430\u043a \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0438\u0441\u043a \u043f\u043e \u0440\u0430\u0437\u0434\u0430\u0447\u0430\u043c rutracker.org \u043d\u0430 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u043c \u0445\u043e\u0441\u0442\u0438\u043d\u0433\u0435 \/ \u043b\u043e\u043a\u0430\u043b\u0445\u043e\u0441\u0442\u0435.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/8df\/7e4\/710\/8df7e4710359499cac026ed67b642972.png\"\/><\/p>\n<p>  <b>\u041f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0441\u043e\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0435:<\/b>  <\/p>\n<ul>\n<li>\u0432\u0441\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043f\u0440\u043e\u0432\u043e\u0434\u044f\u0442\u0441\u044f \u0432 unix-\u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0439 \u0441\u0440\u0435\u0434\u0435. \u041d\u044e\u0430\u043d\u0441\u044b \u0434\u043b\u044f windows \u043c\u043d\u0435, \u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u043d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b;<\/li>\n<li>\u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0443 \u0432\u0430\u0441 \u0431\u0430\u0437\u043e\u0432\u044b\u0445 \u0437\u043d\u0430\u043d\u0438\u0439 Unix shell, Yii2, git<\/li>\n<li>\u043b\u0438\u0447\u043d\u043e \u044f \u0432\u0438\u0436\u0443 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043c\u0430\u043b\u043e \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0435\u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u044d\u0442\u043e\u0433\u043e (\u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u0438\u0441\u043a\u0430 \u043f\u043e \u0440\u0430\u0437\u0434\u0430\u0447\u0430\u043c) \u0440\u0435\u0448\u0435\u043d\u0438\u044f;<\/li>\n<li>\u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0430 yii2 advanced template \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0438\u0437\u0431\u044b\u0442\u043e\u0447\u043d\u0430, \u043d\u043e \u044f \u043a \u043d\u0435\u043c\u0443 \u043f\u0440\u0438\u0432\u044b\u043a;<\/li>\n<li>\u044f \u0432\u043f\u0435\u0440\u0432\u044b\u0435 \u0432 \u0436\u0438\u0437\u043d\u0438 \u0432\u0438\u0436\u0443 spinx, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0442\u0430\u043c \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0435 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0441\u0442\u0440\u0430\u043d\u043d\u043e\u0441\u0442\u0438;<\/li>\n<li>\u0432 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043c\u0435\u0441\u0442\u0430\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0441\u043f\u043e\u0440\u043d\u044b\u0435 (\u0431\u0443\u0434\u0443 \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u0435\u043d \u0437\u0430 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0438 \u00ab\u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u00bb).<\/li>\n<\/ul>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-271519","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/271519","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=271519"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/271519\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=271519"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=271519"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=271519"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}