admin管理员组文章数量:1310092
Is it possible to use WordPress as the CMS but all of contents will be displayed using CodeIgniter?
What I want to know also if I can use the WordPress functions by simply including this wp-blog-header.php
in the CodeIgniter.
Do you guys think this idea will work?
Probably one of the function I really need is apply_filters()
Is it possible to use WordPress as the CMS but all of contents will be displayed using CodeIgniter?
What I want to know also if I can use the WordPress functions by simply including this wp-blog-header.php
in the CodeIgniter.
Do you guys think this idea will work?
Probably one of the function I really need is apply_filters()
- fuxia, why my comment is not an answer? Wordpress is a cms but it provides built-in REST API which you can call from any framework or language. – Ikalazety Commented Jan 7, 2021 at 13:19
- @Ikalazety do not post replies as solutions. Unless what you wrote is the solution to the question, it should not go in the answer box. – Tom J Nowell ♦ Commented Jan 7, 2021 at 14:55
2 Answers
Reset to default 2You can install CI as a theme or a directory in a theme. Then load the files in the theme’s functions.php
and create the output with CI. You can use all the WordPress code here.
As far as I’m aware there will be no conflicts between CodeIgniter’s reserved names and WordPress.
But I am not so sure about the usefulness of this combination. You will not need most of CI’s code, because WordPress handles that already.
To agree with the answer above, I think it would defeat the purpose of using WordPress as A CMS. CodeIgniter is a framework used to developed dynamic sites in PHP. It is not a CMS for displaying content. WordPress is better built for such a task. You could however build out your site using CodeIgniter.
本文标签: wp blog headerphpUsing wordpress and codeigniter in one website
版权声明:本文标题:wp blog header.php - Using wordpress and codeigniter in one website 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741855070a2401295.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论