first import
[projectpier.git] / application / controllers / ApplicationController.class.php
blob6eafe61cb9217daa3b41b2c32f00c0d5f0fd871c
1 <?php
3 /**
4 * Base application controller
6 * @version 1.0
7 * @http://www.projectpier.org/
8 */
9 abstract class ApplicationController extends PageController {
11 /**
12 * Add application level constroller
14 * @param void
15 * @return null
17 function __construct() {
18 parent::__construct();
19 $this->addHelper('application');
20 } // __construct
22 /**
23 * Set page sidebar
25 * @access public
26 * @param string $template Path of sidebar template
27 * @return null
28 * @throws FileDnxError if $template file does not exists
30 protected function setSidebar($template) {
31 tpl_assign('content_for_sidebar', tpl_fetch($template));
32 } // setSidebar
34 } // ApplicationController