{"id":14466,"date":"2011-08-17T05:06:22","date_gmt":"2011-08-17T05:06:22","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wp-code-igniter\/"},"modified":"2011-08-17T05:06:22","modified_gmt":"2011-08-17T05:06:22","slug":"wp-code-igniter","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/wp-code-igniter\/","author":8223477,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0","stable_tag":"trunk","tested":"3.2.1","requires":"3.2","requires_php":"","requires_plugins":"","header_name":"WP Code Igniter","header_author":"Wild Mice Media","header_description":"","assets_banners_color":"","last_updated":"2011-08-17 05:06:22","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"","rating":5,"author_block_rating":0,"active_installs":10,"downloads":4618,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"2"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[3002,68065,7338,68066,68064],"plugin_category":[],"plugin_contributors":[94838],"plugin_business_model":[],"class_list":["post-14466","plugin","type-plugin","status-closed","hentry","plugin_tags-framework","plugin_tags-model-view-controller","plugin_tags-mvc","plugin_tags-mvc-framework","plugin_tags-web-application-framework","plugin_contributors-wildmice","plugin_committers-wildmice"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-code-igniter.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Use this plugin to integrate the CodeIgniter framework into Wordpress, making it available for both themes and other \nplugins.<\/p>\n\n<p>This plugin emulates a CI bootstrap, without any application environment (because Wordpress does that), and includes a \nconfiguration file for setting database connection parameters.<\/p>\n\n<p>CodeIgniter is a powerful PHP framework with a very small footprint, built for PHP coders who need a simple and elegant \ntoolkit to create full-featured web applications. It implements a popular application design pattern called \nmodel-view-controller (MVC). In this case, Wordpress becomes the 'view' instead of a CI application.<\/p>\n\n<p>This plugin will probably work with versions of Wordpress earlier than 3.2, but if you are running such an earlier \nversion check your version of PHP. CodeIgniter requires PHP 5.1.6 or later.<\/p>\n\n<p>Note: This is the first version of this plugin and it has not had extensive testing. Consider it experimental and use at \nyour own risk.<\/p>\n\n<h3>Known Limitations<\/h3>\n\n<p>CodeIgniter functionality is not available to Wordpress admin.<\/p>\n\n<h3>Usage<\/h3>\n\n<p>You can use CodeIgniter in both themes and other plugins. \nHere are some simple examples of its use in a theme context.<\/p>\n\n<p>Simple Example 1 - Database Query:<\/p>\n\n<pre><code>&lt;?php\n  if(defined('WP_CODE_IGNITER_DB')) {\n    $res = $db-&gt;query('SELECT * FROM wp_users');\n    foreach($res-&gt;result() as $row) {\n      echo '&lt;p&gt;'.$row-&gt;user_login.'&lt;\/p&gt;';\n    }\n  }\n?&gt;\n<\/code><\/pre>\n\n<p>Simple Example 2 - Pagination:<\/p>\n\n<pre><code>&lt;?php\n  if(defined('WP_CODE_IGNITER')) {\n    class Pagination extends CI_Controller {\n      public function pagelinks()\n      {\n        $this-&gt;load-&gt;library('pagination');\n        $config['base_url'] = 'http:\/\/example.com\/index.php\/test\/page\/';\n        $config['total_rows'] = '200';\n        $config['per_page'] = '20';\n        $this-&gt;pagination-&gt;initialize($config);\n        echo $this-&gt;pagination-&gt;create_links();\n      }\n    }\n    $pagination = new Pagination;\n    $pagination-&gt;pagelinks();\n  }\n?&gt;\n<\/code><\/pre>\n\n<!--section=installation-->\n<p>Requires PHP 5.1.6 or later.<\/p>\n\n<ol>\n<li>Download the plugin, and extract the files.<\/li>\n<li>Download CodeIgniter from http:\/\/codeigniter.com\/downloads\/ and \nunpack the files.<\/li>\n<li>Copy the contents of the CodeIgniter folder (application folder, system folder, index.php) into the plugin's \"ci\" folder.<\/li>\n<li>Edit the plugin's configuration file, then upload the plugin to your plugins folder.<\/li>\n<li>Activate the plugin through the Plugins menu in WordPress.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Where can I find documentation on CodeIgniter?<\/dt>\n<dd><p>The online manual is at <a href=\"http:\/\/codeigniter.com\/user_guide\/index.html\">CodeIgniter User Guide Version<\/a><\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>This is the first version. Consider it a beta release, as it has not had much testing.<\/li>\n<\/ul>","raw_excerpt":"Easy integration of CodeIgniter functionality into Wordpress, making it available for themes and other plugins.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/14466","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=14466"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/wildmice"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=14466"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=14466"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=14466"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=14466"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=14466"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=14466"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}