-
Notifications
You must be signed in to change notification settings - Fork 0
Plugin API
mayor123 edited this page Dec 12, 2012
·
4 revisions
xEngine supports plugins. If you want to create your own plugin, you should to:
- Create PHP-file named PluginYourPluginName, where YourPluginName is name of your plugin.
2. Write to this file:
`$plugins[] = new PluginYourPluginName($core);`
So, you must to write your own class extends XPlugin named PluginYourPluginName.
And you can place method:
public function buildPage($do) { // manipulate with $do return false; // if you don't to need build page with current $do, you must return false }
3. Copy this file to engine/plugins.
You can use $core in your plugin:
`$this->core->function()`
Also we are working at event system now.