{"id":4950,"date":"2021-08-09T07:27:47","date_gmt":"2021-08-09T07:27:47","guid":{"rendered":"https:\/\/www.bearloga.space\/?page_id=4950"},"modified":"2021-08-09T07:27:47","modified_gmt":"2021-08-09T07:27:47","slug":"yii-rasshireniya","status":"publish","type":"page","link":"https:\/\/www.bearloga.space\/uk\/yii-rasshireniya\/","title":{"rendered":"Yii \u2014 \u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u2014 \u044d\u0442\u043e \u043f\u0430\u043a\u0435\u0442\u044b, \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445 Yii.&nbsp;\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0441\u0432\u043e\u0438\u043c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u0438\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0432 \u0441\u0432\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0439<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u0411\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0439 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u044f\u044e\u0442\u0441\u044f \u0432 \u0432\u0438\u0434\u0435 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 Composer.&nbsp;Composer \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u043f\u0430\u043a\u0435\u0442\u044b \u0438\u0437 Packagist \u2014 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430 \u0434\u043b\u044f \u043f\u0430\u043a\u0435\u0442\u043e\u0432 Composer.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0427\u0442\u043e\u0431\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0435\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435, \u0432\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u0432 \u0444\u0430\u0439\u043b&nbsp;<strong>composer.json<\/strong>&nbsp;.<\/li><li>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u043a\u043e\u043c\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0430.<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u0432 \u0444\u0430\u0439\u043b&nbsp;<strong>composer.json<\/strong>&nbsp;.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u043a\u043e\u043c\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0430.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432\u0438\u0434\u0436\u0435\u0442\u0430 \u0434\u0430\u0442\u044b \u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0438<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0430\u043a\u043a\u0443\u0440\u0430\u0442\u043d\u044b\u0439 \u0432\u0438\u0434\u0436\u0435\u0442\u00a0<strong>\u0434\u0430\u0442\u044b \u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0438<\/strong>\u00a0\u0432 \u043d\u0430\u0448 \u043f\u0440\u043e\u0435\u043a\u0442.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0428\u0430\u0433 1<\/strong>&nbsp;\u2014 \u041c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0439\u0442\u0435 \u0444\u0430\u0439\u043b&nbsp;<strong>composer.json<\/strong>&nbsp;\u0431\u0430\u0437\u043e\u0432\u043e\u0433\u043e \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">{\n   \"name\": \"yiisoft\/yii2-app-basic\",\n   \"description\": \"Yii 2 Basic Project Template\",\n   \"keywords\": [\"yii2\", \"framework\", \"basic\", \"project template\"],\n   \"homepage\": \"http:\/\/www.yiiframework.com\/\",\n   \"type\": \"project\",\n   \"license\": \"BSD-3-Clause\",\n   \"support\": {\n      \"issues\": \"https:\/\/github.com\/yiisoft\/yii2\/issues?state=open\",\n      \"forum\": \"http:\/\/www.yiiframework.com\/forum\/\",\n      \"wiki\": \"http:\/\/www.yiiframework.com\/wiki\/\",\n      \"irc\": \"irc:\/\/irc.freenode.net\/yii\",\n      \"source\": \"https:\/\/github.com\/yiisoft\/yii2\"\n   },\n   \"minimum-stability\": \"stable\",\n   \"require\": {\n      \"php\": \"&gt;=5.4.0\",\n      \"yiisoft\/yii2\": \"&gt;=2.0.5\",\n      \"yiisoft\/yii2-bootstrap\": \"*\",\n      \"yiisoft\/yii2-swiftmailer\": \"*\",\n      \"kartik-v\/yii2-widget-datetimepicker\": \"*\"\n   },\n   \"require-dev\": {\n      \"yiisoft\/yii2-codeception\": \"*\",\n      \"yiisoft\/yii2-debug\": \"*\",\n      \"yiisoft\/yii2-gii\": \"*\",\n      \"yiisoft\/yii2-faker\": \"*\"\n   },\n   \"config\": {\n      \"process-timeout\": 1800\n   },\n   \"scripts\": {\n      \"post-create-project-cmd\": [\n         \"yii\\\\composer\\\\Installer::postCreateProject\"\n      ]\n   },\n   \"extra\": {\n      \"yii\\\\composer\\\\Installer::postCreateProject\": {\n         \"setPermission\": [\n            {\n               \"runtime\": \"0777\",\n               \"web\/assets\": \"0777\",\n               \"yii\": \"0755\"\n            }\n         ],\n         \"generateCookieValidationKey\": [\n            \"config\/web.php\"\n         ]\n      },\n      \"asset-installer-paths\": {\n         \"npm-asset-library\": \"vendor\/npm\",\n         \"bower-asset-library\": \"vendor\/bower\"\n      }\n   }\n}<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u041c\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044c&nbsp;<strong>\u00abkartik-v \/ yii2-widget-datetimepicker\u00bb: \u00ab*\u00bb<\/strong>&nbsp;\u0432 \u0442\u0440\u0435\u0431\u0443\u0435\u043c\u044b\u0439 \u0440\u0430\u0437\u0434\u0435\u043b.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0428\u0430\u0433 2<\/strong>&nbsp;\u2014 \u0422\u0435\u043f\u0435\u0440\u044c \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u0440\u043d\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043a\u043e\u043c\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0430, \u0447\u0442\u043e\u0431\u044b \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0432\u0441\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/coderlessons.com\/wp-content\/uploads\/2019\/07\/add_dependencies.png\" alt=\"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u041c\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435.&nbsp;\u0412\u044b \u043d\u0430\u0439\u0434\u0435\u0442\u0435 \u0435\u0433\u043e \u0432 \u043f\u0430\u043f\u043a\u0435&nbsp;<strong>vendor \/ kartik-v \/ yii2widget-datetimepicker<\/strong>&nbsp;.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0428\u0430\u0433 3<\/strong>&nbsp;\u2014 \u0427\u0442\u043e\u0431\u044b \u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u044c \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u0432\u0438\u0434\u0436\u0435\u0442 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435, \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435&nbsp;<strong>About<\/strong>&nbsp;\u043c\u0435\u0442\u043e\u0434\u0430&nbsp;<strong>actionAbout SiteController<\/strong>&nbsp;.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;?php\n   \/* @var $this yii\\web\\View *\/\n   use kartik\\datetime\\DateTimePicker;\n   use yii\\helpers\\Html;\n   $this-&gt;title = 'About';\n   $this-&gt;params['breadcrumbs'][] = $this-&gt;title;\n   $this-&gt;registerMetaTag(['name' =&gt; 'keywords', 'content' =&gt; 'yii, developing, views,\n      meta, tags']);\n   $this-&gt;registerMetaTag(['name' =&gt; 'description',\n      'content' =&gt; 'This is the description of this page!'], 'description');\n?&gt;\n&lt;div class=\"site-about\"&gt;\n   &lt;h1&gt;&lt;?= Html::encode($this-&gt;title) ?&gt;&lt;\/h1&gt;\n   &lt;p&gt;\n      This is the About page. You may modify the following file to customize its content:\n   &lt;\/p&gt;\n   &lt;?php\n      echo DateTimePicker::widget([\n         'name' =&gt; 'dp_1',\n         'type' =&gt; DateTimePicker::TYPE_INPUT,\n         'value' =&gt; '23-Feb-1982 10:10',\n         'pluginOptions' =&gt; [\n            'autoclose'=&gt;true,\n            'format' =&gt; 'dd-M-yyyy hh:ii'\n         ]\n      ]);\n   ?&gt;\n&lt;\/div&gt;<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0428\u0430\u0433 4.<\/strong>&nbsp;\u0422\u0435\u043f\u0435\u0440\u044c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 php-\u0441\u0435\u0440\u0432\u0435\u0440 \u0438\u0437 \u043a\u043e\u0440\u043d\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e&nbsp;<strong>\u0432\u0435\u0431-<\/strong>&nbsp;\u043a\u043e\u043c\u0430\u043d\u0434\u044b&nbsp;<strong>php -S localhost: 8080t<\/strong>&nbsp;.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0428\u0430\u0433 5<\/strong>&nbsp;\u2014 \u0417\u0430\u0439\u0434\u0438\u0442\u0435 \u043d\u0430&nbsp;<strong>http: \/\/ localhost: 8080 \/ index.php? R = site \/ about.<\/strong>&nbsp;\u0412\u044b \u0443\u0432\u0438\u0434\u0438\u0442\u0435 \u0430\u043a\u043a\u0443\u0440\u0430\u0442\u043d\u044b\u0439&nbsp;<strong>\u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u0434\u0430\u0442\u044b \u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0438,<\/strong>&nbsp;\u043a\u0430\u043a \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0435.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u2014 \u044d\u0442\u043e \u043f\u0430\u043a\u0435\u0442\u044b, \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445 Yii.&nbsp;\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0441\u0432\u043e\u0438\u043c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u0438\u043b\u0438 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[156],"tags":[],"class_list":["post-4950","page","type-page","status-publish","hentry","category-yii"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/pages\/4950","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/comments?post=4950"}],"version-history":[{"count":1,"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/pages\/4950\/revisions"}],"predecessor-version":[{"id":4951,"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/pages\/4950\/revisions\/4951"}],"wp:attachment":[{"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/media?parent=4950"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/categories?post=4950"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/tags?post=4950"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}