$uid
$uid :
Class Controller
$request : \CodeIgniter\HTTP\IncomingRequest
Instance of the main Request object.
$response : \CodeIgniter\HTTP\Response
Instance of the main response object.
$logger : \CodeIgniter\Log\Logger
Instance of logger to use.
$validator : \CodeIgniter\Validation\Validation
Once validation has been run, will hold the Validation instance.
initController(\CodeIgniter\HTTP\RequestInterface $request, \CodeIgniter\HTTP\ResponseInterface $response, \Psr\Log\LoggerInterface $logger)
Constructor.
\CodeIgniter\HTTP\RequestInterface | $request | |
\CodeIgniter\HTTP\ResponseInterface | $response | |
\Psr\Log\LoggerInterface | $logger |
forceHTTPS(integer $duration = 31536000)
A convenience method to use when you need to ensure that a single method is reached only via HTTPS. If it isn't, then a redirect will happen back to this method and HSTS header will be sent to have modern browsers transform requests automatically.
integer | $duration | The number of seconds this link should be considered secure for. Only with HSTS header. Default value is 1 year. |
validate(array|string $rules, array $messages = array()) : boolean
A shortcut to performing validation on input data. If validation is not successful, a $errors property will be set on this class.
array|string | $rules | |
array | $messages | An array of custom error messages |