Use this subclass to easily get an Stud.IP specific Trails.
Example of use:
◆ __construct()
__construct |
( |
ContainerInterface |
$container | ) |
|
Create a new Trails with Stud.IP specific parameters for: trails_root is "$STUDIP_BASE_PATH/app", trails_uri is "dispatch.php" and default_controller is "default" (which does not map to anything).
◆ getRouteCallable()
◆ load_controller()
load_controller |
( |
|
$controller | ) |
|
Loads the controller file for a given controller path and return an instance of that controller. If an error occures, an exception will be thrown.
- Parameters
-
string | $controller | the relative controller path |
- Returns
- Trails an instance of that controller
- Exceptions
-
◆ trails_error()
trails_error |
( |
|
$exception | ) |
|
Adapted error method that just passes the exception to stud.ip's exception instead of the standard trails handling.
- Parameters
-
Exception | $exception | The exception that occured |
- Exceptions
-
◆ $container
The documentation for this class was generated from the following file: