WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

WP Code Igniter

Easy integration of CodeIgniter functionality into WordPress, making it available for themes and other plugins.

Known Limitations

CodeIgniter functionality is not available to WordPress admin.

Usage

You can use CodeIgniter in both themes and other plugins. Here are some simple examples of its use in a theme context.

Simple Example 1 - Database Query:

<?php
  if(defined('WP_CODE_IGNITER_DB')) {
    $res = $db->query('SELECT * FROM wp_users');
    foreach($res->result() as $row) {
      echo '<p>'.$row->user_login.'</p>';
    }
  }
?>

Simple Example 2 - Pagination:

<?php
  if(defined('WP_CODE_IGNITER')) {
    class Pagination extends CI_Controller {
      public function pagelinks()
      {
        $this->load->library('pagination');
        $config['base_url'] = 'http://example.com/index.php/test/page/';
        $config['total_rows'] = '200';
        $config['per_page'] = '20';
        $this->pagination->initialize($config);
        echo $this->pagination->create_links();
      }
    }
    $pagination = new Pagination;
    $pagination->pagelinks();
  }
?>

Requires: 3.2 or higher
Compatible up to: 3.2.1
Last Updated: 2011-8-17
Downloads: 2,586

Ratings

5 stars
5 out of 5 stars

Support

0 of 1 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

33,3,1