From: Bill K. <bi...@ka...> - 2004-05-28 18:49:46
|
Thanks Boris, as usual you have helped me greatly! I used your suggestion of using Dumper, and I discovered that the call to $model->config wasn't returning a config object at all, and in fact the config function in Model.pm wasn't being called. It turns out that I had created a page called "config" and a page handler function for it! Because of the inheritence from the Apache::PageKit::Model package, my handler replaced the config subroutine in Model.pm, and of course my function doesn't returning the model's config object. I changed my page to "appconfig" and now it works. I guess I shouldn't try to debug issues like this after midnight! ;-) The background to this is that my employer wants a screen to allow him to change the user-config parameters for the application through the browser, instead of editing the Config.xml file. I made a screen to do it, and moved most of the user-config parameters out of Config.xml and into a table in our MySQL database (except for the DSN of course). Many thanks, Bill Karwin |