Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
PHP Codeigniter Framework DIP
PHP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
CI-2.1.0
CI-3.0.0
.DS_Store
example.php
readme.md

readme.md

CodeIgniter Dip

Introduction

The idea of a CodeIngiter Dip is to use CodeIgniter functionality outside of the directory, extending the reach of the framework for use in other PHP applications.

Codebase

The dip consists of two different copies of code from the framework itself.

  • index.php
    • Line ~82 | replace with | $system_path = $_SERVER['DOCUMENT_ROOT'] . "/system
    • Line ~99 | replace with | $application_folder = $_SERVER['DOCUMENT_ROOT'] . "/application;
    • Line ~114 | replace with | $view_folder = $_SERVER['DOCUMENT_ROOT'] . "/view"; (CI 3.0)
    • Line ~202 | comment out | require_once BASEPATH.'core/CodeIgniter.php';
  • system/core/CodeIgniter.php
    • Line ~380 | comment out | $OUT->_display();

These files are merged with the above edits, into one file to create the dip.

Note: If you place CodeIgniter inside a directory on your server the paths to system and application (as well as view in CI 3.0) within the index.php portion of the dip will need to changed to something like $system_path = $_SERVER['DOCUMENT_ROOT'] . "/codeigniter/system.

Resources

Something went wrong with that request. Please try again.