From fca236dc6d6ff6e09182c560f3566904cbc7a70a Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Tue, 23 Oct 2012 18:29:43 +0200 Subject: affichage par catégories + meilleur exportation opml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/App_FrontController.php | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) (limited to 'app/App_FrontController.php') diff --git a/app/App_FrontController.php b/app/App_FrontController.php index 5a1009436..d61927c9e 100644 --- a/app/App_FrontController.php +++ b/app/App_FrontController.php @@ -10,14 +10,9 @@ class App_FrontController extends FrontController { $this->loadLibs (); $this->loadModels (); - Session::init (); - - View::prependStyle (Url::display ('/theme/base.css')); - View::appendScript (Url::display ('/scripts/jquery.js')); - View::appendScript (Url::display ('/scripts/smoothscroll.js')); - View::appendScript (Url::display ('/scripts/shortcut.js')); - View::appendScript (Url::display (array ('c' => 'javascript', 'a' => 'main'))); - View::_param ('conf', Session::param ('conf', new RSSConfiguration ())); + Session::init (); // lancement de la session doit se faire après chargement des modèles sinon bug (pourquoi ?) + $this->loadStylesAndScripts (); + $this->loadParamsView (); } private function loadLibs () { @@ -31,4 +26,16 @@ class App_FrontController extends FrontController { include (APP_PATH . '/models/Feed.php'); include (APP_PATH . '/models/Entry.php'); } + + private function loadStylesAndScripts () { + View::prependStyle (Url::display ('/theme/base.css')); + View::appendScript (Url::display ('/scripts/jquery.js')); + View::appendScript (Url::display ('/scripts/smoothscroll.js')); + View::appendScript (Url::display ('/scripts/shortcut.js')); + View::appendScript (Url::display (array ('c' => 'javascript', 'a' => 'main'))); + } + + private function loadParamsView () { + View::_param ('conf', Session::param ('conf', new RSSConfiguration ())); + } } -- cgit v1.2.3