HConsole

From Habari Project

Jump to: navigation, search

Gives you a console to evaluate Habari/PHP Code live on your site.


Syntax

You can evaluate just code and have the result shown below the text box:

echo HABARI_PATH;
echo "foobar";

Or, you can add filters, actions, theme functions, xmlrpc functions. For example to filter post title:

filter_post_title {
    function foo($a) {
        return $a . " BOOOO!";
    }
 
    function boo($a) {
        return $a . " FOOOO!";
    }
}

Or an action:

action_init {
    function foo($a) {
        echo "PONIES!";
    }
}
This page describes a plugin for Habari.
Other Plugin Pages · Learn how to create a plugin · A list of other available plugins
Personal tools