Salut a tous actuellement je souhaite heberger mon site sur 1&1 je demande de l'aide en sachant que ce probleme a ete traiter plusieurs fois mais malgrer les anciens post j'y suis pas arriver alors voila mon nom de domaine m'affiche: Adapter name must be specified in a string
voici mon Bootstrap (en partie):
mon index.php:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 protected function _initDb() { // Chargement des données du fichier application.ini $config = new Zend_Config($this->getOptions()); // Test de la connexion avec l'adapateur créé try { $db = Zend_Db::factory($config->resources->db); $db->getConnection(); } catch (Exception $e) { exit($e->getMessage()); } // Configuration de l'adaptateur par defaut pour nos tables Zend_Db_Table::setDefaultAdapter($db); // Mise en registre de notre adatateur Zend_Registry::set('db', $db); return $db; }
ainsi que mon application.inien sachant que c'est celui du localhost)
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
26
27
28
29
30
31
32 <?php // Define path to application directory defined('APPLICATION_PATH') || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application')); // Define application environment defined('APPLICATION_ENV') || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production')); defined('FONTS_PATH') // || define('FONTS_PATH', 'C:/Windows/Fonts/'); || define('FONTS_PATH', APPLICATION_PATH . '/../public/fonts/'); defined('MAIL_WEBMASTER') || define('MAIL_WEBMASTER', 'info@radi-rca.org'); // Ensure library/ is on include_path set_include_path(implode(PATH_SEPARATOR, array( realpath(APPLICATION_PATH . '/../library'), get_include_path(), ))); /** Zend_Application */ require_once 'Zend/Application.php'; // Create application, bootstrap, and run $application = new Zend_Application( APPLICATION_ENV, APPLICATION_PATH . '/configs/application.ini' ); $application->bootstrap() ->run();
ainsi que mes fichiers a sur le ftp:[production] ; Debug output phpSettings.display_startup_errors = 0 phpSettings.display_errors = 0 phpSettings.date.timezone = "Europe/Paris" ; Include path includePaths.library = APPLICATION_PATH "/../library" ; Bootstrap bootstrap.path = APPLICATION_PATH "/Bootstrap.php" bootstrap.class = "Bootstrap" appnamespace = "Application" ; Front Controller resources.frontController.moduleDirectory = APPLICATION_PATH "/modules" resources.frontController.defaultModule = "accueil" resources.frontController.params.displayExceptions = 0 resources.frontController.params.prefixDefaultModule = "1" resources.modules[] = ; Layout resources.layout.layout = "layout" resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts/" ; Views resources.view.encoding = "UTF-8" resources.view.basePath = APPLICATION_PATH "/views/" resources.view[] = resources.frontController.moduleDirectory = APPLICATION_PATH "/modules" [staging : production] [testing : production] phpSettings.display_startup_errors = 1 phpSettings.display_errors = 1 [development : production] zfdebug.plugins.Variables = null zfdebug.plugins.Time = null zfdebug.plugins.Memory = null zfdebug.plugins.Exception = null zfdebug.plugins.Html = null zfdebug.plugins.Registry = null ; zfdebug.plugins.File = null ; zfdebug.plugins.Cache = null ; zfdebug.plugins.Database = null phpSettings.display_startup_errors = 1 phpSettings.display_errors = 1 resources.frontController.params.displayExceptions = 1 ; resources.db.adapter = "MYSQLI" resources.db.params.host = "localhost" resources.db.params.username = "root" resources.db.params.password = "" resources.db.params.dbname = "rca" resources.db.params.charset = "utf8" resources.db.params.date_format = YYYY-MM-ddTHH:mm:ss resources.db.isDefaultTableAdapter = true
voila mes fichiers a la racine du ftp en sachant que dans 1&1 j'ai cree un sous domaine qui pointe vers le fichier /public/index/ +application -configs -application.ini +languages +layouts +models -Dbtable +modules +view --Bootsrap.php +docs +library +public
De plus je n'aipas cree de .htaccess a la racine voila toutes les infos merci a vous
Partager