Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Created by PhpStorm.
- * User: student
- * Date: 07.12.17
- * Time: 21:01
- */
- namespace Controller;
- class HomeController
- {
- public function index()
- {
- if(isset($_SESSION['typ']) && isset($_SESSION['tekst']))
- {
- echo '<li class="'.$_SESSION['typ'].'">'.$_SESSION['tekst'].'</li>';
- unset($_SESSION['typ']);
- unset($_SESSION['tekst']);
- }
- if(isset($_SESSION['typL']) && isset($_SESSION['tekstL']))
- {
- //Email 'foo@bar.com' does not exist!
- echo '<li class="error">Email \'foo@bar.com\' does not exist!</li>';
- //echo '<li class="'.$_SESSION['typL'].'">Email '.$_SESSION['tekstL'].' does not exist!</li>';
- unset($_SESSION['typL']);
- unset($_SESSION['tekstL']);
- }
- return "home";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement