https://github.com/blocka/expressionengine-bootstrap
Access the expression engine environment outside of the CMS
https://github.com/blocka/expressionengine-bootstrap
Last synced: about 1 year ago
JSON representation
Access the expression engine environment outside of the CMS
- Host: GitHub
- URL: https://github.com/blocka/expressionengine-bootstrap
- Owner: blocka
- Created: 2011-02-15T11:53:12.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2011-03-09T19:38:58.000Z (over 15 years ago)
- Last Synced: 2025-01-26T07:11:19.624Z (over 1 year ago)
- Homepage:
- Size: 193 KB
- Stars: 8
- Watchers: 3
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
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:
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.