Some minor cleanup.
This commit is contained in:
parent
1f7aec1628
commit
a1b5fc4ebf
5 changed files with 6 additions and 9 deletions
|
|
@ -16,7 +16,6 @@ class Blog_IndexController extends Fiktiv_Controller_Action
|
||||||
|
|
||||||
public function readableAction()
|
public function readableAction()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function readAction()
|
public function readAction()
|
||||||
|
|
|
||||||
|
|
@ -66,9 +66,9 @@ class AuthController extends Fiktiv_Controller_Action
|
||||||
// Destroy the magic!
|
// Destroy the magic!
|
||||||
$auth = Zend_Auth::getInstance();
|
$auth = Zend_Auth::getInstance();
|
||||||
|
|
||||||
if ($auth->hasIdentity())
|
if ($auth->hasIdentity()) {
|
||||||
$auth->clearIdentity();
|
$auth->clearIdentity();
|
||||||
|
}
|
||||||
$this->_redirect('/');
|
$this->_redirect('/');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,6 @@ class IndexController extends Fiktiv_Controller_Action
|
||||||
{
|
{
|
||||||
public function indexAction()
|
public function indexAction()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function aboutAction()
|
public function aboutAction()
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,5 @@ class PortfolioController extends Fiktiv_Controller_Action
|
||||||
{
|
{
|
||||||
public function indexAction()
|
public function indexAction()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -2,9 +2,11 @@
|
||||||
|
|
||||||
class ProfileController extends Fiktiv_Controller_Action
|
class ProfileController extends Fiktiv_Controller_Action
|
||||||
{
|
{
|
||||||
public function preDispatch() {
|
public function preDispatch()
|
||||||
if (!Zend_Auth::getInstance()->hasIdentity())
|
{
|
||||||
|
if (!Zend_Auth::getInstance()->hasIdentity()) {
|
||||||
$this->_redirect('/');
|
$this->_redirect('/');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function indexAction()
|
public function indexAction()
|
||||||
|
|
|
||||||
Reference in a new issue