Answer the question
In order to leave comments, you need to log in
Site on yii2, blog to it on Wordpress. Is it worth it to do so?
Good afternoon!
I want to create a website for myself. The site will be written in yii2. In addition to the main content of the site, there should be a section for the blog. There was an idea to make a blog on cms Wordpress. In this case, I will save time so as not to create a yii blog from scratch. Yes, and a plus for combating spam in comments in WP is Akismet out of the box. Make the theme look similar to the main site. Those. in yii, in the directory that looks on the web, I will create a subdirectory /blog and put wordpress in it. There will be 2 admin panels - for the main site and for wp, but this is not a problem, the site is not made to order, but for your needs.
The opinion of knowledgeable people is interesting - in terms of SEO, it will not affect in any way, and indeed, screwing a blog in this way - comme il faut or not? )
Answer the question
In order to leave comments, you need to log in
Hello!
1) you can create a blog in yii2. As far as I know, there is a solution out of the box
2) you can, of course, make a blog on the VP and tie it to the framework. To "link" a blog to yii2, use the wp rest api. But as you have already been told, it is better to get by with one framework than to produce a bunch of cms / framworks etc.
And keep in mind that there will be 2 separate databases ... and for the blog, you will need to create a subdomain like blog.domain.com
in fact ... there will be 2 sites, and through the rest api wp you will publish entries from the yii2 admin panel ...
Of course, it's better to implement everything in the framework...
https://www.yiiframework.com/extension/akiraz2/yii...
https://github.com/vitshark/yii2-blog
https://github.com/Georgynet /Blog-Yii2
Also, there's not much blog work there... I've done this in java + spring.
All you need is:
1) methods (functions) in controllers to implement CRUD. (admin panel)
2) methods (functions) in controllers for implementing access to records from the CNC front
3) entities Category, Article, Comment and all ... Everything else can be increased, added, etc. at will.
It won't affect SEO in any way.
But about comme il faut - this is a very terrible question. Whatever is more convenient, do it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question