{"id":178899,"date":"2013-05-08T12:39:03","date_gmt":"2013-05-08T08:39:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=178899"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=178899","title":{"rendered":"<span class=\"post_title\">\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0432\u0438\u0434\u0435\u043e \u0432 PHPixie<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/i.imgur.com\/LPJ0d3K.png\" alt=\"image\" align=\"right\"\/><br \/>  \u041f\u043e\u0441\u043b\u0435 \u043c\u043e\u0435\u0433\u043e \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0433\u043e \u043f\u043e\u0441\u0442\u0430 \u043e \u0432\u044b\u0431\u043e\u0440\u0435 \u043b\u0435\u0433\u043a\u043e\u0433\u043e \u0424\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 \u044f \u043f\u043e\u0433\u0443\u0433\u043b\u0438\u043b \u0438 \u0443\u0432\u0438\u0434\u0435\u043b \u0447\u0442\u043e \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0438\u0437 \u043d\u0438\u0445 \u043d\u0435\u0442 \u043d\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0440\u0443\u0441\u0441\u043a\u043e\u044f\u0437\u044b\u0447\u043d\u043e\u0433\u043e \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u0430. \u0422\u0430\u043a \u0432\u043e\u0442 \u044f \u0440\u0435\u0448\u0438\u043b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0435\u0440\u0438\u044e \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u043e\u0432 \u0434\u0430\u0431\u044b \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u044d\u0442\u0443 \u043d\u0438\u0448\u0443. \u042f \u0434\u0443\u043c\u0430\u044e \u0441\u0442\u043e\u0438\u0442 \u043d\u0430\u0447\u0430\u0442\u044c \u0441 \u0442\u0435\u0445 \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u044f \u0432 \u043a\u043e\u043d\u0446\u0435 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0441\u044f, \u0430 \u0442\u0430\u043a \u043a\u0430\u043a \u0434\u043b\u044f Silex \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0443\u0436\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043c\u043d\u043e\u0433\u043e \u0442\u043e \u044d\u0442\u043e\u0442 \u043f\u043e\u0441\u0442 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0441\u0432\u044f\u0449\u0435\u043d PHPixie. <\/p>\n<p>  \u0414\u043b\u044f \u0442\u0435\u0445 \u043a\u0442\u043e \u043d\u0435 \u0447\u0438\u0442\u0430\u043b \u043c\u043e\u0435\u0433\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u0432, <a href=\"http:\/\/phpixie.com\" title=\"PHPixie PHP Framework\">PHPixie<\/a> \u2014 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 \u0438 \u043f\u043e \u043c\u043e\u0438\u043c \u043c\u0435\u0440\u043a\u0430\u043c \u043e\u0447\u0435\u043d\u044c \u0431\u044b\u0441\u0442\u0440\u044b\u0439 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u0441 \u043c\u043e\u0434\u0443\u043b\u044c\u043d\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043e\u0439, \u0445\u043e\u0440\u043e\u0448\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u043c DI, \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435\u043c \u0441\u0442\u0430\u0442\u0438\u043a\u043e\u0432 \u0438 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043e\u0439. <br \/>  <a name=\"habracut\"><\/a><\/p>\n<p>  \u041d\u0430 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c \u0441\u0430\u0439\u0442\u0435 \u0432\u0441\u0435 \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u044b \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u044b \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0444\u0435\u0439, \u044f \u0436\u0435 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u044e \u0431\u044b\u0442\u044c \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u043c \u0438 \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0432\u0438\u0434\u0435\u043e \u0438\u0437 Youtube. \u0422\u043e \u0435\u0441\u0442\u044c \u043c\u044b \u0441\u043c\u043e\u0436\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c, \u0443\u0434\u0430\u043b\u044f\u0442\u044c \u0438 \u043f\u0440\u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u0432\u0438\u0434\u0435\u043e. \u0410 \u0435\u0449\u0435 \u043f\u043e \u0434\u043e\u0440\u043e\u0433\u0435 \u043d\u0430\u0443\u0447\u0438\u043c\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c API \u0441\u0430\u043c\u043e\u0433\u043e \u044e\u0442\u0443\u0431\u0430 \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043c\u0435\u0442\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0438 \u0442\u0430\u043c\u0431\u043d\u0435\u0439\u043b\u043e\u0432.<\/p>\n<h4>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/h4>\n<p>  PHPixie \u043c\u043e\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043b\u0438\u0431\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f Composer, \u043b\u0438\u0431\u043e \u0441\u043a\u0430\u0447\u0430\u0432 \u0441\u043d\u0430\u043f\u0448\u043e\u0442 \u0433\u043e\u0442\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0441 \u0441\u0430\u0439\u0442\u0430. \u0420\u0430\u0437\u043d\u0438\u0446\u044b \u043f\u043e\u0447\u0442\u0438 \u043d\u0435\u0442, \u0442\u0430\u043a \u043a\u0430\u043a \u0441\u043d\u0430\u043f\u0448\u043e\u0442 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0438 \u044f\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u0431\u0430\u0437\u043e\u0432\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0441 \u043f\u0440\u043e\u0438\u043d\u0441\u0442\u0430\u043b\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c\u0438 \u0442\u0440\u0435\u043c\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430\u043c\u0438 (core, db \u0438 orm). \u0414\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u0442\u043e\u0440\u043e\u0439 \u043c\u0435\u0442\u043e\u0434, \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0441\u043d\u0430\u043f\u0448\u043e\u0442 \u0437\u0434\u0435\u0441\u044c <a href=\"http:\/\/phpixie.com\/phpixie.zip\">phpixie.com\/phpixie.zip<\/a>. \u0421\u0435\u0440\u0432\u0435\u0440 \u043d\u0430\u0434\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043d\u0430 \u043f\u0430\u043f\u043a\u0443 <i>\/web\/<\/i> \u0432\u043d\u0443\u0442\u0440\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u0412\u043e\u0442 \u0438 \u0432\u0441\u0435, \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u0435\u043c \u0437\u0430\u0439\u0442\u0438 \u043d\u0430 \u043d\u0430\u0448 \u0445\u043e\u0441\u0442 \u0438 \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u043e\u0435 \u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435.<\/p>\n<h4>\u041e\u0431\u044a\u0435\u043a\u0442 $pixie<\/h4>\n<p>  \u041e\u0431\u044a\u0435\u043a\u0442 $pixie \u2014 \u044d\u0442\u043e \u0438\u043c\u043f\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f DI \u041a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \u0438 \u0421\u0435\u0440\u0432\u0438\u0441 \u041b\u043e\u043a\u0430\u0442\u043e\u0440\u0430, \u043d\u0435\u0447\u0442\u043e \u043f\u043e\u0445\u043e\u0436\u0435\u0435 \u043d\u0430 $app \u0432 Silex. \u041e\u043d \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043a\u0430\u043a \u043f\u0440\u043e\u043f\u0435\u0440\u0442\u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432 \u043a\u0430\u0436\u0434\u044b\u0439 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440, $pixie \u0442\u0430\u043a\u0436\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0444\u0430\u043a\u0442\u043e\u0440\u0438 \u043c\u0435\u0442\u043e\u0434\u044b \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430. \u0413\u0440\u0430\u043c\u043e\u0442\u043d\u043e\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0435\u0433\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u043d\u0438\u044f \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u0430 \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u0442\u044c \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435. \u0412 \u043e\u0442\u043b\u0438\u0447\u0438\u0438 \u043e\u0442 Silex \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0438 \u043f\u0440\u043e\u043f\u0435\u0440\u0442\u0438 \u0432 $pixie \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0443\u0442\u0435\u043c \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u043a\u043b\u0430\u0441\u0441\u0430. \u0412 \u0431\u0430\u0437\u043e\u0432\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0443\u0436\u0435 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0443\u0435\u0442 \u043a\u043b\u0430\u0441\u0441 App\\Pixie \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043e\u0442 PHPixie\\Pixie, \u043a\u0430\u043a \u0440\u0430\u0437 \u0432 \u043d\u0435\u0433\u043e \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0441\u0432\u043e\u0439 \u043a\u043e\u0434 \u0447\u0442\u043e\u0431\u044b \u0438\u043c\u0435\u0442\u044c \u043a \u043d\u0435\u043c\u0443 \u0434\u043e\u0441\u0442\u0443\u043f \u043f\u043e\u0432\u0441\u044e\u0434\u0443. \u0421\u043b\u0435\u0434\u0443\u0435\u0442 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0442\u043e \u0447\u0442\u043e \u044d\u0442\u043e \u043d\u0435 \u0441\u0438\u043d\u0433\u043b\u0442\u043e\u043d \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u043c\u0435\u0436\u0434\u0443 \u043a\u043b\u0430\u0441\u0441\u0430\u043c\u0438 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u044f\u0432\u043d\u043e, \u0442\u0430\u043a\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u0431\u044b\u043b \u0438\u0437\u0431\u0440\u0430\u043d \u0434\u043b\u044f \u0438\u0437\u0431\u0435\u0436\u0430\u043d\u0438\u044f \u043a\u0430\u043a\u043e\u0433\u043e-\u043b\u0438\u0431\u043e \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0432 \u043a\u043e\u0434\u0435, \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u044b. \u041a\u0430\u0436\u0434\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 db \u0438\u043b\u0438 orm \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u0432\u043e\u0439 \u043a\u043b\u0430\u0441\u0441 \u0441 \u0444\u0430\u043a\u0442\u043e\u0440\u0438 \u043c\u0435\u0442\u043e\u0434\u0430\u043c\u0438, \u044d\u0442\u0438 \u043a\u043b\u0430\u0441\u0441\u044b \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0432 \u043d\u0430\u0448\u0435\u043c App\\Pixie \u0432 $modules. \u041f\u043e\u0442\u043e\u043c \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0442\u044c \u0438\u0445 \u043a\u0430\u043a \u043f\u0440\u043e\u043f\u0435\u0440\u0442\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f $pixie-&gt;db-&gt;query() \u0438 $pixie-&gt;orm-&gt;get(), \u0447\u0442\u043e \u0432\u043d\u043e\u0441\u0438\u0442 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0441\u0442\u044c \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u0441\u0443\u043f\u0430 \u0438\u0437 \u043c\u0435\u0442\u043e\u0434\u043e\u0432. \u0412 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u0435\u043d\u044f\u0442\u044c \u0432 App\\Pixie \u043d\u0430\u043c \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0443\u0436\u043d\u043e.<\/p>\n<h4>\u0411\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445<\/h4>\n<p>  \u041c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043b\u0438\u0448\u044c \u043e\u0434\u043d\u0443 \u043f\u0440\u043e\u0441\u0442\u0435\u043d\u044c\u043a\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0447\u043a\u0443 \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u0432\u0438\u0434\u0435\u043e, \u0432\u043e\u0442 \u0435\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430:  <\/p>\n<pre><code class=\"sql\">CREATE TABLE `videos` ( \t`id` INT(10) NOT NULL AUTO_INCREMENT, \t`video_id` VARCHAR(20) NOT NULL, \t`title` VARCHAR(255) NOT NULL, \tPRIMARY KEY (`id`) ); <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u043a \u0431\u0430\u0437\u0435 \u0432 <i>\/assets\/config\/db.php<\/i>, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:  <\/p>\n<pre><code class=\"php\">return array( \t'default' =&gt; array( \t\t'user'=&gt;'root', \t\t'password' =&gt; '', \t\t'driver' =&gt; 'PDO', \t\t'connection'=&gt;'mysql:host=localhost;dbname=videos' \t) ); <\/code><\/pre>\n<p>  \u0442\u0443\u0442, \u0434\u0443\u043c\u0430\u044e \u0432\u0441\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u043e.<\/p>\n<h4>\u041c\u043e\u0434\u0435\u043b\u044c<\/h4>\n<p>  \u041b\u044e\u0431\u0430\u044f MVC \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441 \u043c\u043e\u0434\u0435\u043b\u0438, \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u043d\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u0430, Video. \u041a\u0442\u043e \u0437\u043d\u0430\u043a\u043e\u043c \u0441 Kohana \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0447\u0443\u0432\u0441\u0442\u0432\u0443\u0435\u0442 \u0441\u0435\u0431\u044f \u0434\u043e\u043c\u0430, \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043c\u043e\u0434\u0435\u043b\u0438 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u0442\u044c \u043a\u043b\u0430\u0441\u0441 <i>\\PHPixie\\ORM\\Model<\/i>:  <\/p>\n<pre><code class=\"php\">namespace App\\Model; class Video extends \\PHPixie\\ORM\\Model{} <\/code><\/pre>\n<p>  \u041f\u0440\u0438\u0432\u044f\u0437\u043a\u0430 \u043a \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0441\u043b\u0435\u0434\u0443\u044f \u0438\u0437 \u0438\u043c\u0435\u043d\u0438 \u043a\u043b\u0430\u0441\u0441\u0430. \u0412 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0442\u0430\u043a \u043e\u043d\u043e \u0438 \u0435\u0441\u0442\u044c \u0438 \u043c\u0435\u043d\u044f\u0442\u044c \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0443\u0436\u043d\u043e. \u0414\u043e\u0441\u0442\u0443\u043f \u043a \u043c\u043e\u0434\u0435\u043b\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f $pixie. \u0421\u0430\u043c\u044b\u0435 \u044f\u0440\u043a\u0438\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u043a\u043e\u0434\u0430:  <\/p>\n<pre><code class=\"php\">\/\/\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 $video = $pixie-&gt;get('video'); $video-&gt;title = 'Test'; $video-&gt;save();  \/\/\u041f\u043e\u0438\u0441\u043a $video = $pixie-&gt;get('video')-&gt;where('title','Test')-&gt;find();  \/\/\u041f\u043e\u0438\u0441\u043a \u0432\u0441\u0435\u0445 $videos = $pixie-&gt;get('video')-&gt;find_all(); <\/code><\/pre>\n<h4>\u0411\u0430\u0437\u043e\u0432\u0430\u044f \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0430<\/h4>\n<p>  \u0412 \u0431\u0430\u0437\u043e\u0432\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u0438 \u0441\u043a\u0430\u0447\u0430\u043b\u0438 \u0435\u0441\u0442\u044c \u0432 \u043d\u0430\u043b\u0438\u0447\u0438\u0438 \u043f\u043e\u0434\u0432\u0438\u0434 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0435\u0440\u0430, \u043a\u043b\u0430\u0441\u0441 App\\Pixie. \u0415\u0433\u043e \u0440\u0430\u0431\u043e\u0442\u0430 \u0441\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043a \u0442\u043e\u043c\u0443 \u0447\u0442\u043e\u0431 \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u0442\u044c \u0448\u0430\u0431\u043b\u043e\u043d main.php \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0439 \u043a\u0430\u043a \u043f\u0440\u043e\u043f\u0435\u0440\u0442\u0438 $view. \u041d\u0430\u0448\u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442 \u0440\u0430\u0437\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u044d\u0442\u043e\u0442 \u0448\u0430\u0431\u043b\u043e\u043d, \u0432\u043a\u043b\u044e\u0447\u0430\u044f $subview \u2014 \u0438\u043c\u044f \u043f\u043e\u0434\u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u0434\u043e \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c. \u041c\u043d\u0435 \u043a\u0430\u043a \u0440\u0430\u0437 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u043e\u0441\u044c \u0442\u043e, \u0447\u0442\u043e \u043b\u043e\u0433\u0438\u043a\u0430 \u0442\u043e\u0433\u043e \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u043c\u0430\u0441\u0442\u0435\u0440-\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0438 \u043f\u043e\u0434\u0448\u0430\u0431\u043b\u043e\u043d\u044b \u043d\u0435 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043d\u0430 \u0432 \u0441\u0430\u043c\u043e\u043c \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0435 \u0430 \u0432\u044b\u043d\u043e\u0441\u0438\u0442\u0441\u044f \u0432 \u0441\u0430\u043c \u043f\u0440\u043e\u0435\u043a\u0442, \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0435\u0440\u0435\u0434\u0435\u043b\u0430\u0442\u044c \u0435\u0435 \u043f\u043e \u0441\u0432\u043e\u0435\u043c\u0443 \u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0438\u044e. \u041d\u0430\u0448 main.php \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a:  <\/p>\n<pre><code class=\"php\">&lt;!DOCTYPE html&gt; &lt;html&gt; \t&lt;head&gt; \t\t&lt;link href=&quot;\/\/netdna.bootstrapcdn.com\/twitter-bootstrap\/2.3.0\/css\/bootstrap-combined.min.css&quot; rel=&quot;stylesheet&quot;\/&gt; \t&lt;\/head&gt; \t&lt;body&gt; \t\t&lt;div class=&quot;container&quot;&gt; \t\t\t&lt;div class=&quot;row&quot;&gt; \t\t\t\t&lt;div class=&quot;offset3 span6&quot;&gt; \t\t\t\t\t&lt;h2&gt;&lt;a href=&quot;\/&quot;&gt;PHPixie Vids&lt;\/a&gt;&lt;\/h2&gt;  \t\t\t\t\t&lt;!-- \u0424\u043e\u0440\u043c\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u0438\u0434\u0435\u043e --&gt; \t\t\t\t\t&lt;form class=&quot;form-inline&quot; method=&quot;post&quot; action=&quot;\/videos\/add&quot;&gt; \t\t\t\t\t\t&lt;input type=&quot;text&quot; placeholder=&quot;Paste Link\u2026&quot; name=&quot;url&quot;&gt; \t\t\t\t\t\t&lt;button type=&quot;submit&quot; class=&quot;btn btn-primary&quot;&gt;Add new&lt;\/button&gt; \t\t\t\t\t&lt;\/form&gt; \t\t\t\t&lt;\/div&gt; \t\t\t&lt;\/div&gt; \t\t\t&lt;div class=&quot;row&quot;&gt;  \t\t\t\t&lt;!-- \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043f\u043e\u0434\u0448\u0430\u0431\u043b\u043e\u043d --&gt; \t\t\t\t&lt;?php include($subview.'.php'); ?&gt; \t\t\t&lt;\/div&gt; \t\t&lt;\/div&gt; \t&lt;\/body&gt; &lt;\/html&gt; <\/code><\/pre>\n<p>  \u041f\u043e\u0434\u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432 \u0443 \u043d\u0430\u0441 \u0432\u0441\u0435\u0433\u043e \u0434\u0432\u0430: list.php (\u0434\u043b\u044f \u0441\u043f\u0438\u0441\u043a\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0445 \u0440\u043e\u043b\u0438\u043a\u043e\u0432) \u0438 view.php (\u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0433\u043e \u0432\u0438\u0434\u0435\u043e). \u0412\u043e\u0442 \u043e\u043d\u0438:  <\/p>\n<pre><code class=\"php\">&lt;!-- \/assets\/views\/list.php --&gt; &lt;div class=&quot;offset3 span6&quot;&gt; \t&lt;ul class=&quot;thumbnails&quot;&gt; \t\t&lt;?php foreach($videos as $video):?&gt; \t\t\t&lt;li class=&quot;span3&quot;&gt; \t\t\t\t&lt;a class=&quot;thumbnail&quot; href=&quot;\/videos\/view\/&lt;?php echo $video-&gt;id; ?&gt;&quot;&gt;  \t\t\t\t\t&lt;!-- \u0412\u043e\u0442 \u043a\u0430\u043a \u043b\u0435\u0433\u043a\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0442\u0430\u043c\u0431\u043d\u0435\u0439\u043b \u0432\u0438\u0434\u0435\u043e \u043f\u043e \u0430\u0439\u0434\u0438\u0448\u043a\u0435 --&gt; \t\t\t\t\t&lt;img src=&quot;http:\/\/img.youtube.com\/vi\/&lt;?php echo $video-&gt;video_id;?&gt;\/0.jpg&quot;&gt; \t\t\t\t\t&lt;div class=&quot;caption&quot;&gt; \t\t\t\t\t\t&lt;h3&gt;&lt;?php echo $video-&gt;title;?&gt;&lt;\/h3&gt; \t\t\t\t\t&lt;\/div&gt; \t\t\t\t&lt;\/a&gt; \t\t\t&lt;\/li&gt; \t\t&lt;?php endforeach;?&gt; \t&lt;\/ul&gt; &lt;\/div&gt; <\/code><\/pre>\n<pre><code class=\"php\">&lt;div class=&quot;offset3 span6&quot;&gt;  \t&lt;!-- \u0410 \u0432\u043e\u0442 \u043a\u0430\u043a \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432\u0438\u0434\u0435\u043e \u0438 \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0430\u0432\u0442\u043e\u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u043d\u0438\u0435--&gt; \t&lt;iframe width=&quot;420&quot; height=&quot;345&quot; src=&quot;http:\/\/www.youtube.com\/embed\/&lt;?php echo $video-&gt;video_id; ?&gt;?rel=0&autoplay=1&quot;&gt;&lt;\/iframe&gt; &lt;\/div&gt; <\/code><\/pre>\n<h4>\u0420\u043e\u0443\u0442\u0438\u043d\u0433<\/h4>\n<p>  \u042f \u0437\u043d\u0430\u044e \u0447\u0442\u043e \u0432\u044b \u0443\u0436\u0435 \u0437\u0430\u0436\u0434\u0430\u043b\u0438\u0441\u044c \u0441\u0430\u043c\u043e\u0433\u043e \u043a\u043e\u0434\u0430, \u043d\u043e \u043f\u0435\u0440\u0435\u0434 \u0442\u0435\u043c \u043a\u0430\u043a \u043c\u044b \u043f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0443 \u043d\u0430\u043c \u043d\u0430\u0434\u043e \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0435\u0433\u043e \u0432 \/assets\/config\/routes.php. \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u0432 \u0431\u0430\u0437\u043e\u0432\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d \u0440\u043e\u0443\u0442 \u0438 \u043e\u043d \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u0430\u043a <i>\/\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\/\u043c\u0435\u0442\u043e\u0434\/id<\/i>, \u0447\u0442\u043e \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u043d\u0430\u0441 \u0443\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442, \u043d\u043e \u0431\u044b\u043b\u043e \u0431 \u043e\u0447\u0435\u043d\u044c \u043a\u0441\u0442\u0430\u0442\u0438 \u043f\u043e \u043c\u0435\u043d\u044f\u0442\u044c \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u0438\u0437 Hello \u043d\u0430 \u043d\u0430\u0448 Videos.   <\/p>\n<pre><code class=\"php\">return array( \t'default' =&gt; array('(\/&lt;controller&gt;(\/&lt;action&gt;(\/&lt;id&gt;)))', array( \t\t\t\t\t\/\/ \u0414\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \t\t\t\t\t'controller' =&gt; 'Videos', \t\t\t\t\t'action' =&gt; 'index' \t\t\t\t\t) \t\t\t\t), ); <\/code><\/pre>\n<h4>\u041a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440<\/h4>\n<p>  \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u044b 3 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0432 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c 3 \u043c\u0435\u0442\u043e\u0434\u0430. \u0412\u043e\u0442 \u0441 \u0447\u0435\u0433\u043e \u043c\u044b \u043d\u0430\u0447\u043d\u0435\u043c:  <\/p>\n<pre><code class=\"php\">namespace App\\Controller;  class Videos extends \\App\\Page {  \tpublic function action_index(){ \t\t$this-&gt;view-&gt;subview = 'list'; \t\t$this-&gt;view-&gt;videos  = $this-&gt;pixie-&gt;orm-&gt;get('video')-&gt;find_all(); \t} \t \tpublic function action_add(){ \t\t$this-&gt;redirect('\/'); \t\t\/\/\u041e\u0431 \u044d\u0442\u043e\u043c \u0447\u0443\u0442\u044c \u043f\u043e\u0437\u0436\u0435 \t} \t \tpublic function action_view(){ \t\t$this-&gt;view-&gt;subview = 'view';  \t\t\/\/\u0411\u0435\u0440\u0435\u043c id \u0441 URL: \/video\/view\/3 \t\t$id = $this-&gt;request-&gt;param('id'); \t\t$this-&gt;view-&gt;video = $this-&gt;pixie-&gt;orm-&gt;get('video') \t\t\t\t\t\t\t\t\t\t\t\t-&gt;where('id', $id) \t\t\t\t\t\t\t\t\t\t\t\t-&gt;find(); \t} } <\/code><\/pre>\n<p>  \u0417\u0430\u0434\u0430\u0447\u0438 \u0432\u044b\u0431\u043e\u0440\u0430 \u0432\u0441\u0435\u0445 \u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0432\u0438\u0434\u0435\u043e \u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u044b.<br \/>  \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u043e\u0432\u043e\u0433\u043e \u0432\u0438\u0434\u0435\u043e. \u0418\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0432\u0438\u0434\u0435\u043e \u0432 \u0441\u0441\u044b\u043b\u043a\u0435 \u044e\u0442\u0443\u0431\u0430 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0441\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c &#8216;v&#8217;, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 <a href=\"http:\/\/www.youtube.com\/watch?v=75nBenOWul0\">www.youtube.com\/watch?v=75nBenOWul0<\/a>, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0434\u043e\u0441\u0442\u0430\u0442\u044c \u0435\u0433\u043e \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432, \u043d\u043e \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0430\u043a\u043a\u0443\u0440\u0430\u0442\u043d\u044b\u043c \u043c\u043d\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c parse_url(), \u0432\u043e\u0442 \u0442\u0430\u043a:  <\/p>\n<pre><code class=\"php\">parse_str(parse_url( $url, PHP_URL_QUERY ), $vars ); $video_id = $vars['v'];  <\/code><\/pre>\n<p>  \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0440\u043e\u043b\u0438\u043a\u0435, \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0435\u0433\u043e \u0438\u043c\u044f, \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f API \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435 <a href=\"http:\/\/youtube.com\/get_video_info?video_id=\">youtube.com\/get_video_info?video_id=<\/a>&lt;id \u0432\u0438\u0434\u0435\u043e&gt;. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u044d\u0442\u0438 \u0437\u043d\u0430\u043d\u0438\u044f \u043c\u044b \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u0435\u043c \u0434\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u044e\u0449\u0438\u0439 action_add():  <\/p>\n<pre><code class=\"php\">\tpublic function action_add(){ \t\tif($url = $this-&gt;request-&gt;post('url')){ \t\t\tparse_str(parse_url( $url, PHP_URL_QUERY ), $vars ); \t\t\t$video_id = $vars['v'];  \t\t\t$response = file_get_contents(&quot;http:\/\/youtube.com\/get_video_info?video_id=&quot;.$video_id); \t\t\tparse_str($response, $data); \t\t\t$video = $this-&gt;pixie-&gt;orm-&gt;get('video'); \t\t\t$video-&gt;title = $data['title']; \t\t\t$video-&gt;video_id = $video_id; \t\t\t$video-&gt;save(); \t\t} \t\t$this-&gt;redirect('\/'); \t} <\/code><\/pre>\n<p>  \u0418 \u0432\u0443\u0430\u043b\u044f! \u0412\u043e\u0442 \u043a\u0441\u0442\u0430\u0442\u0438 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430:<br \/>  <img decoding=\"async\" src=\"http:\/\/i.imgur.com\/1lb4YXY.png\" alt=\"image\"\/><\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u044b \u043e\u0436\u0438\u0434\u0430\u043b\u0438 \u0431\u043e\u043b\u0435\u0435 \u0441\u043b\u043e\u0436\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u0438\u043b\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0442\u043e \u0438\u0445 \u043d\u0435\u0442, \u0434\u0430 \u0438 \u0441\u0430\u043c\u043e\u0433\u043e \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 \u043f\u043e\u0447\u0442\u0438 \u043d\u0435 \u0437\u0430\u043c\u0435\u0442\u043d\u043e, \u044d\u0442\u043e \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u043a\u043e\u043d\u0446\u0435\u043d\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043a\u0430\u043a \u0440\u0430\u0437 \u043d\u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0438 \u0441\u0432\u043e\u0435\u0433\u043e \u043a\u043e\u0434\u0430 \u0432\u043c\u0435\u0441\u0442\u043e \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044f \u0447\u0443\u0436\u043e\u0433\u043e. <br \/>  \u041d\u0430\u0434\u0435\u044e\u0441\u044c \u043f\u043e\u0441\u0442 \u0432\u0430\u043c \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u0441\u044f, \u0430 \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 \u0440\u0430\u0437 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0443\u0447\u0438\u0442\u0441\u044f \u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0430 Lithium.    \t \t\t   \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/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\/178899\/\"> http:\/\/habrahabr.ru\/post\/178899\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/i.imgur.com\/LPJ0d3K.png\" alt=\"image\" align=\"right\"\/><br \/>  \u041f\u043e\u0441\u043b\u0435 \u043c\u043e\u0435\u0433\u043e \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0433\u043e \u043f\u043e\u0441\u0442\u0430 \u043e \u0432\u044b\u0431\u043e\u0440\u0435 \u043b\u0435\u0433\u043a\u043e\u0433\u043e \u0424\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 \u044f \u043f\u043e\u0433\u0443\u0433\u043b\u0438\u043b \u0438 \u0443\u0432\u0438\u0434\u0435\u043b \u0447\u0442\u043e \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0438\u0437 \u043d\u0438\u0445 \u043d\u0435\u0442 \u043d\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0440\u0443\u0441\u0441\u043a\u043e\u044f\u0437\u044b\u0447\u043d\u043e\u0433\u043e \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u0430. \u0422\u0430\u043a \u0432\u043e\u0442 \u044f \u0440\u0435\u0448\u0438\u043b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0435\u0440\u0438\u044e \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u043e\u0432 \u0434\u0430\u0431\u044b \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u044d\u0442\u0443 \u043d\u0438\u0448\u0443. \u042f \u0434\u0443\u043c\u0430\u044e \u0441\u0442\u043e\u0438\u0442 \u043d\u0430\u0447\u0430\u0442\u044c \u0441 \u0442\u0435\u0445 \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u044f \u0432 \u043a\u043e\u043d\u0446\u0435 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0441\u044f, \u0430 \u0442\u0430\u043a \u043a\u0430\u043a \u0434\u043b\u044f Silex \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0443\u0436\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043c\u043d\u043e\u0433\u043e \u0442\u043e \u044d\u0442\u043e\u0442 \u043f\u043e\u0441\u0442 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0441\u0432\u044f\u0449\u0435\u043d PHPixie. <\/p>\n<p>  \u0414\u043b\u044f \u0442\u0435\u0445 \u043a\u0442\u043e \u043d\u0435 \u0447\u0438\u0442\u0430\u043b \u043c\u043e\u0435\u0433\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u0432, <a href=\"http:\/\/phpixie.com\" title=\"PHPixie PHP Framework\">PHPixie<\/a> \u2014 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 \u0438 \u043f\u043e \u043c\u043e\u0438\u043c \u043c\u0435\u0440\u043a\u0430\u043c \u043e\u0447\u0435\u043d\u044c \u0431\u044b\u0441\u0442\u0440\u044b\u0439 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u0441 \u043c\u043e\u0434\u0443\u043b\u044c\u043d\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043e\u0439, \u0445\u043e\u0440\u043e\u0448\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u043c DI, \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435\u043c \u0441\u0442\u0430\u0442\u0438\u043a\u043e\u0432 \u0438 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043e\u0439.   <\/p>\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-178899","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/178899","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=178899"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/178899\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=178899"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=178899"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=178899"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}