Browser and Operating System Finder

Capture

My first ever wordpress plugin to find Browser and Operating System on which website is running. It will add those particular names in body tag class attributes as shown below:

<body class=”…. browser-firefox os-windows”>
<body class=”…. browser-chrome os-apple”>
<body class=”…. browser-safari os-iphone”>
<body class=”…. browser-chrome os-android”>

You can configure names as per your need.

You can get this plugin at https://wordpress.org/plugins/browser-and-operating-system-finder/

OR

you can just search for “Browser and Operating System Finder” in search plugins box.

Setup HMVC with Codeigniter 3.0

codeigniter_logo

Follow below steps to setup HMVC in codeigniter(CI):

https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc/downloads

1. Download zip from above URL and copy them into application folder of CI

2. Rewrite HTACCESS

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

3. Create folder called “modules” in application folder i.e. application/modules

4. Create a folder of particular module in modules folder. For e.g. application/modules/admin

5. Create controllers, models and views folder in particular module. For e.g.  in application/modules/admin module

6. Create controller file controllers folder of particular module. For e.g.  application/modules/admin/controllers/Admin.php

<?php

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

class Admin extends CI_Controller {

    public function index() {

        $this->load->view(‘admin/dashboard’);

    }

}

7. Following will be the structure:

hmvc-structure

That’s it…