Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php defined('sys_run_app') OR exit('403 You dont have permission to access / on this server...');
- // Pada halaman welcome ini,
- // Contoh bagaimana mengakses controller untuk mendapatkan session
- $controller = new User_Controller();
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <title>Welcome User <?= $controller->getSessionLogin("user-login") ?> </title>
- <meta name="viewport" content="width=device-width, initial-scale=1">
- </head>
- <?= _importJQuery(); ?>
- <?= _importBootstrap(); ?>
- <?= _importGF(); ?>
- <body>
- <div class="container">
- <h3 class="well">
- Hello User <?= $controller->getSessionLogin("user-login"); ?>
- </h3>
- <hr>
- <div class="well">
- <a href="#" id="logout">Logout</a>
- </div>
- </div>
- <script type="text/javascript">
- _onClick("logout",function(){
- _confirm("Are you sure wannt to logout ?",function(){
- _refresh(_myUrl()+"logout");
- });
- });
- </script>
- </body>
- </html>
Add Comment
Please, Sign In to add comment