Implements the base controller for QVCI applications.
| Qvc_controller::__construct |
( |
| ) |
|
| Qvc_controller::_get_controller_path |
( |
| ) |
|
Get the path of the current controller, starting with the web root. This method requires public visibility, but the leading underscore prevents access via the web URL. This method takes into consideration that the controller may be accessed via a route, so it looks at the uri segments and returns the portion up to the method segment. If the method is not found in the list of segments, as would happen with 'index', return the entire segment list. Important to note that the uri->segments is the only member which contains the path as provided in the url.
- Returns
- string
| Qvc_controller::_remap |
( |
|
$method, |
|
|
|
$params = [] |
|
) |
| |
The _remap() function allows us to pass parameters to index(). This method requires public visibility, but the leading underscore prevents access via the web URL.
- Parameters
-
| string | $method | |
| array | $params | |
| Qvc_controller::_required_not_zero |
( |
|
$val | ) |
|
Form validation rule for dropdown selectors, requires that the value is not empty or zero. Unfortunately this is how CI implements custom rules; it needs to be in the controller. This method requires public visibility, but the leading underscore prevents access via the web URL.
- Parameters
-
- Returns
- boolean
| Qvc_controller::index |
( |
| ) |
|
Default index for when the controller does not provide one.
The documentation for this class was generated from the following file:
- qvci/controllers/Qvc_controller.php