Example #1
0
 protected function View($viewModel = null)
 {
     $trace = debug_backtrace();
     $caller = $trace[1];
     \PhpMvc\View::Setup();
     \PhpMvc\View::SetViewBag($this->viewBag);
     \PhpMvc\View::RenderForController($viewModel, Application::$Controller, Application::$Action, Application::$Method);
     return new ViewResult(\PhpMvc\View::GetContent());
 }
Example #2
0
View::Layout("__layout.php");
View::StartSection("head");
?>

<?php 
View::EndSection();
?>

<div class="row">
	<div class="col-md-12 page-404">
		<div class="number">
			404
		</div>
		<div class="details">
			<h3>Oops! You're lost.</h3>
			<p>
				We can not find the page you're looking for.<br/>
				<a href="/">
					Return home </a>
			</p>
		</div>
	</div>
</div>

<?php 
View::StartSection("tail");
?>

<?php 
View::EndSection();
Example #3
0
		<link rel="stylesheet" href="<?php 
echo Application::GetUrl('~/Content/css/bootstrap-theme.css');
?>
"/>

		<?php 
View::Section("head");
?>

	</head>

<body>
	<div class="navbar navbar-inverse navbar-static-top">
		<div class="navbar-left">
			<a href="#" class="navbar-brand"><span class="glyphicon glyphicon-globe"></span></a>
		</div>
	</div>

	<?php 
View::Page();
?>

	<script type="text/javascript" src="<?php 
echo Application::GetUrl('~/Content/js/boostrap.min.js');
?>
"></script>
	<?php 
View::Section("tail");
?>
</body>
</html>