This commit is contained in:
Logsol 2013-07-10 14:27:24 +02:00
parent 91aa15d253
commit febd8f0883
8 changed files with 69 additions and 47 deletions

View file

@ -33,12 +33,15 @@ class AdminPageController extends Katharsis_Controller_Abstract
$upload = new Upload();
if($type == 'header') {
$upload->header($_FILES['myfile']);
$imagePath = $upload->header($_FILES['myfile']);
} else {
$upload->page($_FILES['myfile']);
$imagePath = $upload->page($_FILES['myfile']);
}
echo 'Das Hochladen war erfolgreich.<br><br>';
$this->_view->imagePath = $imagePath;
echo $this->_view->render('AdminPage/uploadsuccess');
die();
}

View file

@ -18,7 +18,7 @@ class PageController extends Katharsis_Controller_Abstract
$url = substr($method, 0, -6); // remove Action from urlAction
$pageId = $this->_page->getIdByUrl($url);
$pageId = $this->_page->getIdByUrl($url, $preview);
if(!$pageId) {
throw new DidgeridooArtwork_Exception('Page konnte nicht geladen werden.');