<?php

/**
 *
 * PHP Pro Bid $Id$ UZpfWgJ+RTDObXJwyVc43KnEQgNmh/4GquWB+m+UpIs=
 *
 * @link        http://www.phpprobid.com
 * @copyright   Copyright (c) 2014 Online Ventures Software LTD & CodeCube SRL
 * @license     http://www.phpprobid.com/license Commercial License
 *
 * @version     7.2
 */

namespace Install\Controller;

use Ppb\Controller\Action\AbstractAction,
    Cube\Controller\Front;

class Error extends AbstractAction
{

    public function init()
    {

        $this->getResponse()
            ->setHeader(' ')
            ->setResponseCode(404);

        $bootstrap = Front::getInstance()->getBootstrap();
        $user = $bootstrap->getResource('user');
        $view = $bootstrap->getResource('view');

        if (!$user) {
            $view->setLayout('404.phtml');
        }
    }

    public function NotFound()
    {
        return array();
    }

}

