CropImagesController
extends Controller
in package
Class CropImagesController
- Handles the image resizing and cropping process
- Uses an external java jar (legotools) to process the image according to the board size
Table of Contents
Properties
- $trans : array<string|int, mixed>
- $translations : array<string|int, mixed>
Methods
- __construct() : mixed
- Initializes the controller and loads translation strings
- index() : void
- Displays the cropping interface for the most recently uploaded image
- process() : void
- Handles the cropping logic by invoking an external java tool
- render() : void
- Renders a view file within a layout template.
Properties
$trans
protected
array<string|int, mixed>
$trans
= []
Holds translation strings for the current language.
$translations
private
array<string|int, mixed>
$translations
Key/Value pair of translations.
Methods
__construct()
Initializes the controller and loads translation strings
public
__construct() : mixed
index()
Displays the cropping interface for the most recently uploaded image
public
index() : void
process()
Handles the cropping logic by invoking an external java tool
public
process() : void
render()
Renders a view file within a layout template.
public
render(string $file[, array<string|int, mixed> $data = [] ][, string $template = 'default' ]) : void
Parameters
- $file : string
-
The name of the view file (without .php extension).
- $data : array<string|int, mixed> = []
-
Associative array of data to pass to the view.
- $template : string = 'default'
-
The layout template to use (default: 'default').