From: <al...@us...> - 2008-09-24 22:52:03
|
Revision: 700 http://sciret.svn.sourceforge.net/sciret/?rev=700&view=rev Author: alpeb Date: 2008-09-24 22:51:52 +0000 (Wed, 24 Sep 2008) Log Message: ----------- added forms dir, and use ZF's sessions handlig Modified Paths: -------------- trunk/index.php Modified: trunk/index.php =================================================================== --- trunk/index.php 2008-09-24 22:51:12 UTC (rev 699) +++ trunk/index.php 2008-09-24 22:51:52 UTC (rev 700) @@ -21,6 +21,7 @@ dirname(__FILE__).'/libs', dirname(__FILE__).'/classes', dirname(__FILE__).'/models', + dirname(__FILE__).'/forms', dirname(__FILE__).'/modules/default/models', dirname(__FILE__).'/modules/blog/models', dirname(__FILE__).'/actions', @@ -90,10 +91,19 @@ $_GET['view'] = 'NotInstalled'; } +/************************** +/* SESSION +/**************************/ + // ZF still doesn't have facilities for this session_name($config->environment->session_name); -Zend_Session::start(); +$appSession = new Zend_Session_Namespace('Default'); +if (is_null($appSession->messages)) { + $appSession->messages = array(); +} +Zend_Registry::set('appSession', $appSession); + $auth = Zend_Auth::getInstance(); if ($auth->hasIdentity()) { $users = new Users(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |