Skip to content

Category: Apps

Building Basehim apps: the manifest and lifecycle, hooks, the App API, admin screens, AJAX actions, permissions, content types and blocks.

10 articles

Import an RSS feed on a schedule

A step-by-step tutorial. Build an app that checks an RSS feed every hour and saves new items as draft posts, using scheduled tasks, outbound HTTP, terms, declared permissions and the app log, plus a real cron job for punctual runs.

Asif Mughal

Add a "Was this helpful?" widget with AJAX

A step-by-step tutorial. Build an app that asks readers whether a post helped, records answers through a rate-limited public AJAX action, stores them in its own table and shows a report to editors.

Asif Mughal

Build your first app: an announcement bar

A step-by-step tutorial. Build a small Basehim app with a settings screen in the admin and a message bar on every public page, and learn the manifest, boot(), admin routes, CSRF, settings, views and front-end output along the way.

Asif Mughal

Content types, blocks and widgets

Register your own content types with full admin screens, add custom blocks to the editor with a PHP renderer for the public site, and provide widgets for widget areas, the editor and the dashboard.

Asif Mughal

App permissions

How an app declares what it will touch, how site owners approve it, what happens when a call isn't allowed, the full permission catalogue, logs and the static scanner - and what the model does not protect against.

Asif Mughal

AJAX actions

Register browser actions with $this->ajax() and call them with Basehim.ajax. Core checks the session, CSRF token, capability, input schema and rate limit before your handler runs. Includes the full option and error reference.

Asif Mughal

Admin screens, routes and UI components

Add pages to the admin with adminGet() and adminPost(), control who can open them, handle forms safely with CSRF tokens and flash messages, use the admin's buttons, cards, dialogs and toasts, and register public routes.

Asif Mughal

Hooks and filters

How actions and filters work in Basehim, with the complete list of core hooks - content, users, comments, media, mail, admin, editor, SEO, MCP and routing - and the arguments each one passes.

Asif Mughal

App development

How a Basehim app is structured: the app.json manifest, the entry class, lifecycle methods, what boot() is for, the helpers the base class gives you, and how to package and publish an app.

Asif Mughal