Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [MySQL][Zend_Db] Polaczenie z mysql i obsluga
aggreSSive115
post 14.09.2011, 11:49:20
Post #1





Grupa: Zarejestrowani
Postów: 4
Pomógł: 0
Dołączył: 11.09.2011

Ostrzeżenie: (0%)
-----


Witam,

mam problem ze "zrozumieniem" tutoriala na stronie zenda, wiec postanowilem tutaj napisac o pomoc smile.gif Chcialbym polaczyc sie z baza danych uzywajac Zend_Db, jednak mam problem z samym ustaleniem polaczenia. W pliku application.ini mam wpisane:

Kod
[production]
phpSettings.display_startup_errors = 0
phpSettings.display_errors = 0
includePaths.library = APPLICATION_PATH "/../library"
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
appnamespace = "Application"
resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
resources.frontController.params.displayExceptions = 0
resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts/"

resources.db.adapter = pdo_mysql
resources.db.params.host = localhost
resources.db.params.username = root
resources.db.params.password =
resources.db.params.dbname = testnews
resources.db.params.charset = utf8
resources.db.isDefaultTableAdapter = true

[staging : production]

[testing : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1

[development : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
resources.frontController.params.displayExceptions = 1


I teraz chcialbym sie zapytac jak zrobic, aby te ustawienia wywolac, lub zeby polaczenie z baza danych bylo automatyczne?

Pozdrawiam!
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 18.07.2025 - 01:02