From fb57be5a5af3a2fb46b2dbf2b503ffe78eb5cf49 Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Sun, 21 Oct 2012 18:47:57 +0200 Subject: First commit --- app/App_FrontController.php | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 app/App_FrontController.php (limited to 'app/App_FrontController.php') diff --git a/app/App_FrontController.php b/app/App_FrontController.php new file mode 100644 index 000000000..5a2b27eed --- /dev/null +++ b/app/App_FrontController.php @@ -0,0 +1,29 @@ + +*/ +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/Feed.php'); + include (APP_PATH . '/models/Entry.php'); + } +} -- cgit v1.2.3