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.
Public Properties
Property | Description |
---|---|
isWebAliasSetDynamically | boolean |
isWebrootAliasSetDynamically | boolean |
scriptFilename | string – The requested script name being used to access Craft (e.g. “index.php”). |
isWebAliasSetDynamically
- Type
- boolean
- Default value
false
isWebrootAliasSetDynamically
- Type
- boolean
- Default value
false
scriptFilename
- Type
- string
- Default value
null
The requested script name being used to access Craft (e.g. “index.php”).
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”).