Repository navigation
Image
Viames Marino edited this page Feb 26, 2026
·
2 revisions
Pair\Html\FormControls\Image renders <input type="image"> (submit button with image source), not an <img> tag.
render(): string- Inherited methods from FormControl:
value(),id(),class(),data(),title().
$imgSubmit = (new \Pair\Html\FormControls\Image('searchByImage'))
->value('/assets/img/search-button.png')
->title('Search');
echo $imgSubmit->render();In HTML, input[type=image] typically uses src, while this control inherits value handling from FormControl.
Verify generated markup against your frontend expectations.
See also: Button, File, FormControl.
Maintained by Viames Marino — VM Ingegneria · Professional enquiries
Home · Setup · Configuration
Build with Pair 4
- Generator
- Controllers and responses
- Read models
- ActiveRecord and queries
- Forms and validation
- PairUI.js and HTML fragments
APIs and authentication
- API guide and CRUD
- Middleware and rate limits
- Users, sessions, and ACL
- Passkeys and social login
- Native mobile setup
Integrate and operate
- Integrations
- Runtime extensions and adapter keys
- Cache and cache stores
- Logs and observability
- PWA and push
- Packages and distribution
- Upgrade to v4