php class Bootstrap extends Zend_Application_Boo tstrap_Bootstrap prot

 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
<?php
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
protected function _initEnvironment()
{
$this->bootstrap('systemenvironment');
}
protected function _initProtectedRoutes() {
$uri = ltrim($_SERVER["REQUEST_URI"], "/");
$module_name = substr($uri, 0, strpos($uri, "/"));
if ($module_name == 'admin' && $uri != 'admin/signin') {
$session = new Zend_Session_Namespace('tmf_session_admin');
// check
}
if ($module_name == 'backoffice' && $uri != 'backoffice/signin') {
$session = new Zend_Session_Namespace('tmf_backoffice_session');
// chekc
}
}