PHP Class App\Core\Controller

Afficher le fichier Open project: nova-framework/framework Class Usage Examples

Protected Properties

Свойство Type Description
$layout string The currently used Layout.
$template string The currently used Template.

Méthodes publiques

Méthode Description
__construct ( ) Create a new Controller instance.
getLayout ( string | null $layout = null, array $data = [] ) : Template\Template | View\View Return a Layout instance.
getLayoutName ( ) : string Return the current Layout (class) name.
getTemplate ( ) : string Return the current Template name.

Méthodes protégées

Méthode Description
getView ( array $data = [] ) : Nova\View\View Return a default View instance.
processResponse ( mixed $response ) : Response Create from the given result a Response instance and send it.

Method Details

__construct() public méthode

Create a new Controller instance.
public __construct ( )

getLayout() public méthode

Return a Layout instance.
public getLayout ( string | null $layout = null, array $data = [] ) : Template\Template | View\View
$layout string | null
$data array
Résultat Template\Template | View\View

getLayoutName() public méthode

Return the current Layout (class) name.
public getLayoutName ( ) : string
Résultat string

getTemplate() public méthode

Return the current Template name.
public getTemplate ( ) : string
Résultat string

getView() protected méthode

Return a default View instance.
protected getView ( array $data = [] ) : Nova\View\View
$data array
Résultat Nova\View\View

processResponse() protected méthode

Create from the given result a Response instance and send it.
protected processResponse ( mixed $response ) : Response
$response mixed
Résultat Symfony\Component\HttpFoundation\Response

Property Details

$layout protected_oe property

The currently used Layout.
protected string $layout
Résultat string

$template protected_oe property

The currently used Template.
protected string $template
Résultat string