css et js inexistant
This commit is contained in:
parent
8c4fb83566
commit
4bf2ca7a4b
@ -8,21 +8,21 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
|
|||||||
$view = $this->getResource('view');
|
$view = $this->getResource('view');
|
||||||
$pathStyle = '/themes/default/styles';
|
$pathStyle = '/themes/default/styles';
|
||||||
$pathScript = '/themes/default/scripts';
|
$pathScript = '/themes/default/scripts';
|
||||||
|
|
||||||
$view->setEncoding('UTF-8');
|
$view->setEncoding('UTF-8');
|
||||||
$view->doctype('XHTML1_STRICT');
|
$view->doctype('XHTML1_STRICT');
|
||||||
|
|
||||||
$view->headMeta()
|
$view->headMeta()
|
||||||
->appendHttpEquiv('Content-Type', 'text/html; charset=UTF-8')
|
->appendHttpEquiv('Content-Type', 'text/html; charset=UTF-8')
|
||||||
->appendHttpEquiv('Content-Language', 'fr-FR');
|
->appendHttpEquiv('Content-Language', 'fr-FR');
|
||||||
|
|
||||||
$view->headLink()
|
$view->headLink()
|
||||||
->appendStylesheet($pathStyle.'/jquery.qtip.css', 'all')
|
->appendStylesheet($pathStyle.'/jquery.qtip.css', 'all')
|
||||||
->appendStylesheet('/themes/jstree/default/style.css')
|
->appendStylesheet('/themes/jstree/default/style.css')
|
||||||
->appendStylesheet('/themes/jqueryui/jquery-ui.css', 'all')
|
->appendStylesheet('/themes/jqueryui/jquery-ui.css', 'all')
|
||||||
->appendStylesheet($pathStyle.'/main.css', 'all')
|
->appendStylesheet($pathStyle.'/main.css', 'all');
|
||||||
->appendStylesheet('/themes/multiselect/css/ui.multiselect.css', 'all');
|
//->appendStylesheet('/themes/multiselect/css/ui.multiselect.css', 'all');
|
||||||
|
|
||||||
$view->headScript()
|
$view->headScript()
|
||||||
->appendFile($pathScript.'/jquery.js', 'text/javascript')
|
->appendFile($pathScript.'/jquery.js', 'text/javascript')
|
||||||
->appendFile($pathScript.'/jquery.bgiframe.js', 'text/javascript')
|
->appendFile($pathScript.'/jquery.bgiframe.js', 'text/javascript')
|
||||||
@ -30,13 +30,13 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
|
|||||||
->appendFile($pathScript.'/jquery-ui.js', 'text/javascript')
|
->appendFile($pathScript.'/jquery-ui.js', 'text/javascript')
|
||||||
->appendFile($pathScript.'/jquery.qtip.js', 'text/javascript')
|
->appendFile($pathScript.'/jquery.qtip.js', 'text/javascript')
|
||||||
->appendFile($pathScript.'/upload.js', 'text/javascript')
|
->appendFile($pathScript.'/upload.js', 'text/javascript')
|
||||||
->appendFile($pathScript.'/scripts.js', 'text/javascript')
|
->appendFile($pathScript.'/scripts.js', 'text/javascript');
|
||||||
->appendFile($pathScript.'/ui.multiselect.js', 'text/javascript');
|
//->appendFile($pathScript.'/ui.multiselect.js', 'text/javascript');
|
||||||
|
|
||||||
$view->headTitle()->setSeparator(' - ');
|
$view->headTitle()->setSeparator(' - ');
|
||||||
$view->headTitle('Odea');
|
$view->headTitle('Odea');
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function _initLogging()
|
protected function _initLogging()
|
||||||
{
|
{
|
||||||
//Logger de développement
|
//Logger de développement
|
||||||
@ -45,7 +45,7 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
|
|||||||
$logger = new Zend_Log($writer);
|
$logger = new Zend_Log($writer);
|
||||||
Zend_Registry::set('firebug', $logger);
|
Zend_Registry::set('firebug', $logger);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function _initDb()
|
protected function _initDb()
|
||||||
{
|
{
|
||||||
$dbConfig = new Zend_Config_Ini(APPLICATION_PATH . '/configs/configuration.ini', 'databases');
|
$dbConfig = new Zend_Config_Ini(APPLICATION_PATH . '/configs/configuration.ini', 'databases');
|
||||||
@ -57,15 +57,15 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
|
|||||||
}
|
}
|
||||||
Zend_Registry::set('db', $db);
|
Zend_Registry::set('db', $db);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function _initAutoload()
|
protected function _initAutoload()
|
||||||
{
|
{
|
||||||
require_once APPLICATION_PATH . '/../library/Zend/Loader/Autoloader.php';
|
require_once APPLICATION_PATH . '/../library/Zend/Loader/Autoloader.php';
|
||||||
|
|
||||||
$appPath = realpath(dirname(__FILE__));
|
$appPath = realpath(dirname(__FILE__));
|
||||||
$rootPath = dirname($appPath);
|
$rootPath = dirname($appPath);
|
||||||
$autoload = Zend_Loader_Autoloader::getInstance();
|
$autoload = Zend_Loader_Autoloader::getInstance();
|
||||||
|
|
||||||
$application = new Zend_Loader_Autoloader_Resource(array(
|
$application = new Zend_Loader_Autoloader_Resource(array(
|
||||||
'basePath' => $appPath . '/modules/frontend/models/',
|
'basePath' => $appPath . '/modules/frontend/models/',
|
||||||
'namespace' => '',
|
'namespace' => '',
|
||||||
@ -73,17 +73,17 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
|
|||||||
'objects'=>array('path'=>'Objects/', 'namespace'=>'Object'),
|
'objects'=>array('path'=>'Objects/', 'namespace'=>'Object'),
|
||||||
'forms'=>array('path'=>'Forms/', 'namespace'=>'Form')
|
'forms'=>array('path'=>'Forms/', 'namespace'=>'Form')
|
||||||
)));
|
)));
|
||||||
|
|
||||||
$libs = new Zend_Loader_Autoloader_Resource(array(
|
$libs = new Zend_Loader_Autoloader_Resource(array(
|
||||||
'basePath' => $rootPath . '/library',
|
'basePath' => $rootPath . '/library',
|
||||||
'namespace' => 'library',
|
'namespace' => 'library',
|
||||||
'resourceTypes' => array('libs'=>array('path'=>'libs/','namespace'=>'Libs'),
|
'resourceTypes' => array('libs'=>array('path'=>'libs/','namespace'=>'Libs'),
|
||||||
)));
|
)));
|
||||||
|
|
||||||
$loader = new Zend_Application_Module_Autoloader(array(
|
$loader = new Zend_Application_Module_Autoloader(array(
|
||||||
'namespace' => '',
|
'namespace' => '',
|
||||||
'basePath' => APPLICATION_PATH));
|
'basePath' => APPLICATION_PATH));
|
||||||
|
|
||||||
return $loader;
|
return $loader;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user