File path: dist/twist/Core/Controllers/Placeholder.controller.php
Namespace: Twist\Core\Controllers
Extends: Base
Type: Controller
Placeholder
— The route controller for the Placeholder image generator and serves as an image in the browser.
This route can be easily added to your site by calling the Twist::Route()->placeholder() alias 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'));
Method | Access | Returns |
---|---|---|
_index | public | void |