开发者

Good approach to adding a blog to my website

I've built a custom website 开发者_运维问答on top of the codeigniter framework. I now want to implement a 'blog' section of my website and allow various non-technical people I work with to edit/create blog entries and post them. I don't want to create a backend for this from scratch.

Are there any good plugins for codeigniter that work with existing blog hosting services to perhaps download an xml-rss feed and construct this into a blog page? Not sure what the best approach is to offer this kind of functionality to nontechnical people I work with. Any suggestions?


If it's simply the admin interface you don't want to write again, I would:

  • Setup the blog on the same mysql server as your CodeIgniter app OR on a server with a static IP
  • Create another db connection from your app to the blog's database
  • Use CodeIgniter to handle data, routing and the frontend views

This will allow you to better integrate the frontend interface of the blog into your existing site while keeping the blog's backend.

If you don't (for some reason) want to create another connection, you could use the RSS feeds as an XML formatted API, or create an API layer on top of the blog. This option will definitely be slower than a direct connection, but you may prefer to do it this way.


Almost all blogs provide RSS. You could just consume that and cache it using an RSS Parser library.

I have a demo running right now using this method with Tumblr

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜