File path: dist/twist/Core/Controllers/Placeholder.controller.php
Namespace: Twist\Core\Controllers
Extends: Base
_index
— Output a placeholder image, this route uses the following GET parameters if set:
width - Width of the image e.g 400 (do not suffix with px)
height - Height of the image e.g 400 (do not suffix with px)
bg - Background color as a Hex code
line - Line color as a Hex code
To register this functionality look at Twist::Route()->placeholder()
void — No return information has been documented for this function.
<?php
/** --------- Option 1 --------- */
//Register a dynamic route that will direct all function requests to the controller
Twist::Route() -> controller('/placeholder%','\Twist\Core\Controllers\Placeholder');
/** --------- Option 2 --------- */
//Or you can register a route to only direct the current request to a particular controller method
Twist::Route() -> get('/placeholder/_index',array('\Twist\Core\Controllers\Placeholder','_index'));