Skip to content
Francis Ilechukwu edited this page Jun 19, 2019 · 9 revisions


This wiki will discuss in detail, all that is needed to understand how to use this library to create blogs on your websites.

The package consists of the main library Blogger.php in it's libraries folder and a model BlogManager.php in its model folder which is responsible for carrying out database operations for the library.

Though you can load the model instead, it's advised to load the library as it has other features concerning your UI and as well, loads the model behind for you and perfectly manages it. You would find that the main library class is capable of calling all the functions of the model.


This library provides you the following functionalities.

  • An Editor to edit posts.
  • Save and Edit Posts.
  • Retrieve posts by page and per-page count.
  • Retrieve posts by most read and per page count.
  • W3CSS support.
  • og:meta support for SEO.
  • Post Rendering

A Sample Blog Using the library

Let's assume we have two controllers in our Code Igniter application. One for administrative purposes and the other for simply viewing the blog posts.

  • InstallBlog.php
  • AdminController.php
  • BlogController.php

The AdminController is responsible for creating, editing and publishing blog posts. This controller will have functions responsible for the aforementioned actions.

defined('BASEPATH') OR exit('No direct script access allowed');

class AdminController extends CI_Controller {

  function loadEditorForNewPost() {
    // Load your normal View Header. Then...
    $params = array("name" => "a_blog");
    $this->load->splint("francis94c/blog", "+Blogger", $params, "blogger");
    // Load your normal footer here.

  function loadEditorToEditPost($postId) {
    // Load your normal View Header. Then...
    $params = array("name" => "a_blog");
    $this->load->splint("francis94c/blog", "+Blogger", $params, "blogger");
    // Load your normal footer here.
Clone this wiki locally
You can’t perform that action at this time.