<?php
use PhpMvc\Html;
use PhpMvc\View;
View::setLayout('_empty');
?>
<!--View file: <?=View::getViewFile()?>-->
<html>
<head>
<title><?=Html::getTitle('Default layout with empty parent')?> - PHP MVC Test project</title>
</head>
<body>
<?php Html::render('header', 'PHP MVC'); ?>
<div class="container">
<h1>Default layout with empty parent</h1>
<?=Html::validationSummary()?>
<?php Html::renderBody(); ?>
<h3>Model</h3>
<?php var_dump(View::getModel()); ?>
<h3>ViewData</h3>
<?php var_dump(View::getData()); ?>
<h3>ModelState</h3>
<?php var_dump(View::getModelState()); ?>
</div>
<?php Html::render('footer'); ?>
</body>
</html>
|