コード例 #1
0
 public function showByView($id)
 {
     $users = $this->UserModel->fetchAll();
     $user = $this->UserModel->fetchOne($id);
     View::view('firstcolumn', 'App/Views/users/users.list.php', ['users' => $users]);
     View::view('secondcolumn', 'App/Views/users/users.user.php', ['user' => $user]);
 }
コード例 #2
0
 public function showByView($id)
 {
     $klanten = $this->klantModel->fetchAll();
     $klant = $this->klantModel->fetchOne($id);
     View::view('firstcolumn', 'App/Views/klanten/klanten.list.php', ['klanten' => $klanten]);
     View::view('secondcolumn', 'App/Views/klanten/klanten.klant.php', ['klant' => $klant]);
 }
コード例 #3
0
ファイル: app.layout.php プロジェクト: HypeHenry/ivikproject
?>
			
			</article>

			<article class="col-md-4">
			
				<?php 
echo View::section('secondcolumn');
?>
			
			</article>

			<article class="col-md-4">
			
				<?php 
echo View::section('thirdcolumn');
?>
			
			</article>
      		
      		<hr>

			<footer>
				<p>&copy; 2015 Company, Inc.</p>
			</footer>
		</div> <!-- container -->
		
		<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
		<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
		<!-- Latest compiled and minified JavaScript -->
		<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>