JX

JamilX

Framework Documentation

Next: Apps & Modules

Prototypes

Reusable data helpers that keep Services lean.

Prototypes live in prototypes/ and can be simple function libraries or classes extending JX_Prototype.

Function Prototype

function blog_get_categories()
{
    return blog_db()->query("SELECT * FROM blog_categories");
}

Call the helper directly inside Services or Actions.

Prototype Class

$users = new JX_Prototype('users');
$users->insert(['name'], ['Ada']);
$users->read(1);

The base prototype ships helpers like createTable, insert, read, and delete.

Data Focus

Use Prototypes to encapsulate database access and business rules.

Shared Contracts

Apply similar method names across prototypes to simplify action logic.

Next

Apps and modules let you package these building blocks together.

Explore Apps & Modules →