JX

JamilX

Framework Documentation

Next: Prototypes

Containers

Containers are view templates that render the UI.

Containers live in containers/ and are included by Services or Actions to generate HTML responses.

Minimal Container

<div>
  <h1>Dashboard</h1>
</div>

Save the file in a relevant container directory and include it from a Service.

Typical Include

include "containers/dashboard/dashboard.php";

Containers can access variables set by the Service or Action.

Composition

Compose a page from multiple containers to keep layouts modular.

Action Hooks

Some containers directly call getAction() for data hydration.

Next

Prototypes help you package data access for your containers and actions.

Explore Prototypes →