Find framework reference pages for handlers, routes, middleware, modules, database, views, and security.

Reference search

Results for "images"

Reference results link to the matching section. Follow its prerequisites before using a code extract.

From the matching guide

Rendering Images With ImageHandler

Use the built-in ImageHandler when a view needs to render an image through the framework asset path rules: The helper outputs a <picture> tag and handles PUBLIC_URL_PREFIX automatically. For PNG and JPEG images, it can generate a WebP sourc...

<?= \CorianderCore\Core\Image\ImageHandler::render('/public/assets/img/logo.png', [
    'alt' => 'Site logo',
    'class' => 'h-10 w-auto',
    'quality' => 80,
    'loading' => 'lazy',
    'decoding' => 'async',
]); ?>

Rendering Images With ImageHandler

Use the built-in ImageHandler when a view needs to render an image through the framework asset path rules: The helper outputs a <picture> tag and handles PUBLIC_URL_PREFIX automatically. For PNG and JPEG images, it can generate a WebP sourc...

Recommended App Architecture

Keep framework files separate from application behavior. In 0.4.1, pages and HTTP handlers share one private Views tree; classes and browser helpers remain ordinary app-owned code. Actions is a convention, not a special framework feature. A...

Deploy Prebuilt Assets

...Images and other assets still use timestamp versions. The build-only .generated.json list tracks JavaScript cleanup ownership: keep it locally between builds, ignore it in Git, and omit it from deployment. Do not delete handwritten JavaScri...

Check Your Work

...For images and public files, use Assets . Add public URLs to the Sitemap ; views are not scanned to infer sitemap entries. When data must come from the request or a repository, continue with Dynamic View Guide .

Upgrade From 0.4.0 To 0.4.1

...See Assets And Images and NodeJS Integration . Dependencies have not changed from 0.4.0. You do not need a database migration for these framework fixes; you do need to review the effect of existing nullable write conditions. See Database Gu...

Which View Do I Need?

...Open guide Images and public files Use PublicUrl and ImageHandler for deployment-safe asset URLs. Open guide