Class MY_Controller
-
CI_Controller
-
MY_Controller
Methods summary
public
|
|
public
|
#
render( string $view, boolean $return = false )
Renders passed view
Parameters
- $view
- view name
- $return
- render image directly or return as string
|
public
|
#
_output( string $output )
Override _ouput Ouput class method to allow implicit view rendering
Override _ouput Ouput class method to allow implicit view rendering
Parameters
|
public
boolean
|
#
status( string $class, string $redirect = false , $custom_message = '' )
Saves controller action status, if it has not been set before
Saves controller action status, if it has not been set before
Parameters
- $class
- $action Name of performed action (create, edit, delete...)
- $redirect
- $class ok or error
- $custom_message
Returns
boolean
|
Properties summary
protected
array
|
$data
Data that wil be passed to views
Data that wil be passed to views
|
|
protected
|
$default_view
|
|
public
array
|
$status
|
|