This repository was archived by the owner on May 7, 2020. It is now read-only.
forked from blocka/ExpressionEngine-Bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
cchiles/ExpressionEngine-Bootstrap
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
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 0
No packages published