added some useful models and controllers

This commit is contained in:
Logsol 2013-07-08 21:02:22 +02:00
parent 9bb724147e
commit 1d4b2a3314
44 changed files with 6424 additions and 0 deletions

View file

@ -0,0 +1,27 @@
<?php
class PageController extends Katharsis_Controller_Abstract
{
protected $_page;
public function init()
{
$this->_page = new Page();
}
public function __call($method, $args)
{
$preview = false;
if(array_key_exists('preview', $this->_getAllParams()) && Access::isLogged())
{
$preview = true;
}
$method = substr($method, 0, -6);
$content = $this->_page->render($method, $preview);
$content = DidgeridooArtwork_Page_Plugin::render($content);
$this->_view->stageContent = $content;
echo $this->_view->render('main');
die();
}
}