2011年1月19日星期三

Fwd: [fw-db] About Zend

Hey!

I think you need to fetch some informations about what happens exactly:
(I assume you are using Zend_Application and you give the configs'
path to its constructor.)

1. First of all, see whether your settings are correctly loaded. Maybe
try var_dump()-ing Zend_Application::getOptions() after you've loaded
the config-file.

2. Then, see if your configurations are used to load ZendX_Db_Adapter.
I don't know your application architecture, but try var_dump()-ing the
object, you are using to build and execute the query and see whether
its db-configurations are correctly set.

3. What is the kind of error? I mean, is it an uncaught exception? May
an exception be suppressed by your configurations? If yes, switch off
the suppression for your development environment. Or is there not any
reaction (that would be bad. try getting your system more verbose if
so).
Generally, try to play with your system. Make it more verbose (only
for developmental concerns). Try setting var_dumps() (with (maybe) a
subsequent call to die()) in several points of your application.
Sorry, to be helping in such a superficial way, but we would need some
further application details for helping concretely.

Best regards,
Ciao Nico

没有评论: