added some useful models and controllers
This commit is contained in:
parent
a6873ee6c8
commit
57c0436f14
45 changed files with 6456 additions and 0 deletions
27
application/controller/PageController.php
Normal file
27
application/controller/PageController.php
Normal 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();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue