aboutsummaryrefslogtreecommitdiff
path: root/app/App_FrontController.php
blob: bffe80ea3395b6959e2f75122535a1583b730c27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
/** 
 * MINZ - Copyright 2011 Marien Fressinaud
 * Sous licence AGPL3 <http://www.gnu.org/licenses/>
*/
require ('FrontController.php');

class App_FrontController extends FrontController {
	public function init () {
		$this->loadLibs ();
		$this->loadModels ();
		
		Session::init ();
		
		View::prependStyle (Url::display ('/theme/base.css'));
		View::_param ('conf', Session::param ('conf', new RSSConfiguration ()));
	}
	
	private function loadLibs () {
		require (LIB_PATH . '/lib_rss.php');
		require (LIB_PATH . '/lib_simplepie.php');
	}
	
	private function loadModels () {
		include (APP_PATH . '/models/RSSConfiguration.php');
		include (APP_PATH . '/models/Category.php');
		include (APP_PATH . '/models/Feed.php');
		include (APP_PATH . '/models/Entry.php');
	}
}