Change database name in Model Zend Db Table

I am new to Zend Framework. I have declared database name and user name/password in application.ini like this: = "localhost"
resources.db.params.username = "root"
resources.db.params.password = "root"
resources.db.params.dbname = "abc"

Now when I make a model class ,then I have to just declare table name like

protected $_name = "table1"

then it just to connect to "table1" in db "abc". Now I want to change dbname to "xyz" and connect to table "table2". Can I do it without changing the default database in application.ini somewhere in model class.

Thanks in advance.


You may check these link1, link2

and also this SO post

Need Your Help

Sqlite Query Loop not working

ios sql database xcode sqlite

i am trying to run this query but neither NSLog is working nor the alert is showing .. query does not executes it does not gets into the if loop

Inflate an XML in Fragment programmatically

android xml android-layout android-fragments layout-inflater

I have as my first Fragment and the another Fragment being having a TabHost in it. When user clicks on a button in MainActivity, I want to inflate an XML in second

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.