Reorganized structure; 404 support

This commit is contained in:
Marcin Kurczewski
2013-10-05 17:12:51 +02:00
parent a1f73d008d
commit 3ba0d60d78
9 changed files with 42 additions and 28 deletions

View File

@ -21,13 +21,6 @@ abstract class AbstractController
public function workWrapper($workCallback)
{
session_start();
$this->context->layoutName = isset($_GET['json'])
? 'layout-json'
: 'layout-normal';
$this->context->transport = new StdClass;
$this->context->transport->success = null;
$this->attachUser();
try
@ -40,10 +33,5 @@ abstract class AbstractController
$this->context->transport->exception = $e;
$this->context->transport->success = false;
}
catch (Exception $e)
{
$this->context->exception = $e;
$this->context->viewName = 'error-exception';
}
}
}