RequestTrait
- Type
- Trait
- Namespace
- craft\base
- Implemented by
- craft\console\Request, craft\web\Request
- Since
- 3.0.0
Request trait.
This provides request methods that are common between craft\web\Request and craft\console\Request.
View source (opens new window)
# Public Properties
Property | Description |
---|---|
isWebAliasSetDynamically | boolean (opens new window) |
isWebrootAliasSetDynamically | boolean (opens new window) |
scriptFilename | string (opens new window) – The requested script name being used to access Craft (e.g. “index. |
# isWebAliasSetDynamically
- Type
- boolean (opens new window)
- Default value
false
View source (opens new window)
# isWebrootAliasSetDynamically
- Type
- boolean (opens new window)
- Default value
false
View source (opens new window)
# scriptFilename
- Type
- string (opens new window)
- Default value
null
The requested script name being used to access Craft (e.g. “index.php”).
View source (opens new window)
# Public Methods
Method | Description |
---|---|
getScriptFilename() | Returns the requested script name being used to access Craft (e.g. “index.php”). |
# getScriptFilename()
Returns the requested script name being used to access Craft (e.g. “index.php”).
View source (opens new window)