Created
December 6, 2011 21:45
-
-
Save eminetto/1440147 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
</head> | |
<body> | |
<h2>Blog do Minetto</h2> | |
<?php | |
//mensagens de erro | |
$messages = new Zend_Session_Namespace('Messages'); | |
if(isset($messages->erro)) | |
echo "<p> $messages->erro </p>"; | |
unset($messages->erro); | |
?> | |
<?php | |
//usuario logado? | |
$auth = Zend_Auth::getInstance(); | |
if ($auth->hasIdentity()) { ?> | |
<p><a href="/post/logout">Sair</a></p> | |
<?php | |
} | |
?> | |
<?php echo $this->layout()->content; ?> | |
<p>Copyleft @eminetto</p> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment