resoving
This commit is contained in:
parent
91aa15d253
commit
febd8f0883
8 changed files with 69 additions and 47 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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.');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue