{"id":1792,"date":"2017-02-10T04:28:20","date_gmt":"2017-02-10T04:28:20","guid":{"rendered":"http:\/\/myprojects.advchaweb.com\/?p=1792"},"modified":"2017-02-10T15:39:37","modified_gmt":"2017-02-10T15:39:37","slug":"phalcon-cms-yona-cms","status":"publish","type":"post","link":"https:\/\/myprojects.advchaweb.com\/index.php\/2017\/02\/10\/phalcon-cms-yona-cms\/","title":{"rendered":"Phalcon CMS: Yona CMS"},"content":{"rendered":"<p>Source: <a href=\"https:\/\/github.com\/oleksandr-torosh\/yona-cms\">https:\/\/github.com\/oleksandr-torosh\/yona-cms<\/a><br \/>\nInstallation:<\/p>\n<ol>\n<li>Use composer\n<pre class=\"lang:default decode:true \">teddy@teddy-K43SJ:~\/Documents\/works\/phalcon$ composer create-project oleksandr-torosh\/yona-cms -s dev\r\nYou are running composer with xdebug enabled. This has a major impact on runtime performance. See https:\/\/getcomposer.org\/xdebug\r\nInstalling oleksandr-torosh\/yona-cms (dev-master 30781f1e43c996cc5f5dc622978264256fbadf0d)\r\n  - Installing oleksandr-torosh\/yona-cms (dev-master master)\r\n    Cloning master\r\n\r\nCreated project in \/home\/teddy\/Documents\/works\/phalcon\/yona-cms\r\nLoading composer repositories with package information\r\nUpdating dependencies (including require-dev)\r\n  - Installing symfony\/yaml (v3.2.3)\r\n    Downloading: 100%         \r\n\r\n  - Installing psr\/log (1.0.2)\r\n    Loading from cache\r\n\r\n  - Installing symfony\/debug (v3.2.3)\r\n    Downloading: 100%         \r\n\r\n  - Installing symfony\/polyfill-mbstring (v1.3.0)\r\n    Loading from cache\r\n\r\n  - Installing symfony\/console (v3.2.3)\r\n    Downloading: 100%         \r\n\r\n  - Installing symfony\/filesystem (v3.2.3)\r\n    Loading from cache\r\n\r\n  - Installing symfony\/config (v3.2.3)\r\n    Downloading: 100%         \r\n\r\n  - Installing robmorgan\/phinx (dev-master d575d4c)\r\n    Cloning d575d4c6c4685be1213673be314d1b15d56f51be\r\n\r\n  - Installing michelf\/php-markdown (1.7.0)\r\n    Downloading: 100%         \r\n\r\n  - Installing mobiledetect\/mobiledetectlib (2.8.24)\r\n    Downloading: 100%         \r\n\r\n  - Installing sneakybobito\/phalcon-stubs (v3.0.1)\r\n    Downloading: 100%         \r\n\r\nsymfony\/console suggests installing symfony\/event-dispatcher ()\r\nsymfony\/console suggests installing symfony\/process ()\r\nWriting lock file\r\nGenerating autoload files\r\nDo you want to remove the existing VCS (.git, .svn..) history? [Y,n]?<\/pre>\n<\/li>\n<li>Go into &#8216;yona-cms&#8217; dir then modify the files permission\n<pre class=\"lang:default decode:true \">teddy@teddy-K43SJ:~\/Documents\/works\/phalcon\/yona-cms$ sudo chmod a+w data -R\r\nteddy@teddy-K43SJ:~\/Documents\/works\/phalcon\/yona-cms$ sudo chmod a+w public\/assets -R\r\nteddy@teddy-K43SJ:~\/Documents\/works\/phalcon\/yona-cms$ sudo chmod a+w public\/img -R\r\nteddy@teddy-K43SJ:~\/Documents\/works\/phalcon\/yona-cms$ sudo chmod a+w public\/robots.txt<\/pre>\n<\/li>\n<li>Create a new database &#8216;yona-cms&#8217; via PHPMyAdmin<\/li>\n<li>Import the tables from &#8216;yona-cms.sql&#8217; file (available in root yona-cms)<\/li>\n<li>Modify \/app\/config\/environment\/development.php file for the database name, password and change the &#8216;base_path&#8217; that suit with my local environment\n<pre class=\"lang:default decode:true\">&lt;?php\r\n\r\nreturn [\r\n    \/\/'base_path' =&gt; '\/',\r\n    'base_path' =&gt; 'http:\/\/localhost\/works\/phalcon\/yona-cms\/public\/',\r\n\r\n    'database'  =&gt; [\r\n        ...\r\n    ],\r\n\r\n    ...\r\n];<\/pre>\n<p>It worth also to modify &#8216;phinx.yml&#8217; file in the root of yona-cms<\/li>\n<li>Run it on your web browser (Mine: http:\/\/localhost\/works\/phalcon\/yona-cms\/public\/)<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/02\/yona-cms.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-1795\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/02\/yona-cms-1024x476.png\" alt=\"\" width=\"840\" height=\"390\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/02\/yona-cms-1024x476.png 1024w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/02\/yona-cms-300x139.png 300w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/02\/yona-cms-768x357.png 768w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/02\/yona-cms-1200x558.png 1200w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/02\/yona-cms.png 1319w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a>The good thing is it&#8217;d also display the profiler bar (for development mode) at the bottom of the website<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/02\/yona-cms-profiler.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-1796\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/02\/yona-cms-profiler-1024x489.png\" alt=\"\" width=\"840\" height=\"401\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/02\/yona-cms-profiler-1024x489.png 1024w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/02\/yona-cms-profiler-300x143.png 300w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/02\/yona-cms-profiler-768x366.png 768w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/02\/yona-cms-profiler.png 1115w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a>For the admin page (user login: yona, password:yonacmsphalcon), http:\/\/localhost\/works\/phalcon\/yona-cms\/public\/admin. Here is the looks<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/02\/yona-cms-admin.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-1798\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/02\/yona-cms-admin-1024x514.png\" alt=\"\" width=\"840\" height=\"422\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/02\/yona-cms-admin-1024x514.png 1024w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/02\/yona-cms-admin-300x150.png 300w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/02\/yona-cms-admin-768x385.png 768w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/02\/yona-cms-admin-1200x602.png 1200w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/02\/yona-cms-admin.png 1242w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a>I STILL DIDN&#8217;T UNDERSTAND WHERE IS THE FILE FOR SETTING $_SERVER[&#8216;APPLICATION_ENV&#8217;]. THE DEFAULT VALUE IS &#8216;development&#8217;. I DEBUGGED IT IN \/public\/index.php FILE. I HAVE SEARCHED ALL IN THE PHP, YML AND DATABASE FILE BUT DIDN&#8217;T FIND IT. AT LAST I FOUND IT IN \/public\/.htaccess FILE!!! IT USE APACHE AND IT&#8217;S UNEXPECTED. HERE IS THE LINE\n<pre class=\"lang:default decode:true \">SetEnv APPLICATION_ENV \"development\"<\/pre>\n<p>CAN READ ALSO <a href=\"http:\/\/stackoverflow.com\/questions\/13784116\/setting-environment-variables-with-the-built-in-php-web-server\">http:\/\/stackoverflow.com\/questions\/13784116\/setting-environment-variables-with-the-built-in-php-web-server<\/a>.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Source: https:\/\/github.com\/oleksandr-torosh\/yona-cms Installation: Use composer teddy@teddy-K43SJ:~\/Documents\/works\/phalcon$ composer create-project oleksandr-torosh\/yona-cms -s dev You are running composer with xdebug enabled. This has a major impact on runtime performance. See https:\/\/getcomposer.org\/xdebug Installing oleksandr-torosh\/yona-cms (dev-master 30781f1e43c996cc5f5dc622978264256fbadf0d) &#8211; Installing oleksandr-torosh\/yona-cms (dev-master master) Cloning master Created project in \/home\/teddy\/Documents\/works\/phalcon\/yona-cms Loading composer repositories with package information Updating dependencies (including require-dev) &#8211; Installing &hellip; <a href=\"https:\/\/myprojects.advchaweb.com\/index.php\/2017\/02\/10\/phalcon-cms-yona-cms\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Phalcon CMS: Yona CMS&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[59,48],"tags":[],"class_list":["post-1792","post","type-post","status-publish","format-standard","hentry","category-phalcon","category-php-2"],"_links":{"self":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/1792","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/comments?post=1792"}],"version-history":[{"count":5,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/1792\/revisions"}],"predecessor-version":[{"id":1810,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/1792\/revisions\/1810"}],"wp:attachment":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/media?parent=1792"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/categories?post=1792"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/tags?post=1792"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}