Article View: pl.comp.lang.php
Article #220107Re: [ZendFramework] bootstrap i Zend_Db_Table_Abstract::getDefaultAdapter()
From: Marcin
Date: Wed, 12 Aug 2009 10:45
Date: Wed, 12 Aug 2009 10:45
23 lines
1687 bytes
1687 bytes
Krzysztof Szatanik pisze: > $db = Zend_Db::factory( $this->config->db->main ); > Mao_Db_Table:::setDefaultAdapter( $db ); > no tak, ale pytanie mam zatem: czy to nie bedzie podwojnie inicjowana baza danych? raz w application.ini, raz w bootstrapie? czy wywalic z application.ini informacje o bazie, czy polaczenie nie jest nawiazywane jezeli wczesniej w bootstrap jest ustawione setDefaultAdapter? takie mam wpisy w ini: resources.db.adapter = "PDO_MYSQL" resources.db.params.host = "localhost" resources.db.params.username = "aaa" resources.db.params.password = "aaa" resources.db.params.dbname = "aaa" resources.db.isDefaultTableAdapter = true dzieki, pozdr, m.
Technical Details
Message-ID:
<h5u6ku$25i$1@atlantis.news.neostrada.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!newsfeed.neostrada.pl!atlantis.news.neostrada.pl!news.neostrada.pl!not-for-mailReferences:
<h5rl7c$4bc$1@nemesis.news.neostrada.pl> <h5sl29$77o$1@inews.gazeta.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!newsfeed.neostrada.pl!atlantis.news.neostrada.pl!news.neostrada.pl!not-for-mail From: Marcin <md23128@sgh.waw.pl> Newsgroups: pl.comp.lang.php Subject: Re: [ZendFramework] bootstrap i Zend_Db_Table_Abstract::getDefaultAdapter() Date: Wed, 12 Aug 2009 12:45:47 +0200 Organization: TP - http://www.tp.pl/ Lines: 23 Message-ID: <h5u6ku$25i$1@atlantis.news.neostrada.pl> References: <h5rl7c$4bc$1@nemesis.news.neostrada.pl> <h5sl29$77o$1@inews.gazeta.pl> NNTP-Posting-Host: cqi221.neoplus.adsl.tpnet.pl Mime-Version: 1.0 X-Trace: atlantis.news.neostrada.pl 1250074078 2226 83.31.240.221 (12 Aug 2009 10:47:58 GMT) X-Complaints-To: usenet@news.neostrada.pl NNTP-Posting-Date: Wed, 12 Aug 2009 10:47:58 +0000 (UTC) User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) In-Reply-To: <h5sl29$77o$1@inews.gazeta.pl> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit