Skip to content
This repository was archived by the owner on May 7, 2020. It is now read-only.

Access the expression engine environment outside of the CMS

Notifications You must be signed in to change notification settings

cchiles/ExpressionEngine-Bootstrap

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

This file "bootstraps" the EE environment, so you use the EE "super object" in EE2, or the EE global objects in EE1.

Useful for little one off scripts, or cron jobs that need access to the EE environment.

Example:

<?php
$system_path = '/path/to/system/folder';
include '/path/to/bootstrap.php';

$EE = get_instance(); // We haven't been using PHP4 for years!
$DB = $EE->db;

require_once APPPATH.'libraries/Template'.EXT;
$EE->TMPL = new EE_Template();
...

Note: EE2 seems to kill some superglobals, so you might want to save these and repopulate them after the bootstrap file is included.

About

Access the expression engine environment outside of the CMS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published